diff --git a/imitation/README.md b/imitation/README.md new file mode 100644 index 0000000000000000000000000000000000000000..d1e7d114661bab51aeb835a2419e4c4f67b7fcfd --- /dev/null +++ b/imitation/README.md @@ -0,0 +1,14 @@ +# The Imitation Game + +This is a server for playing Turing's Imitation Game. It is intended +for use in a classroom setting. Installation is as usual for Python +packages, it requires Python 3, the `llm` wrapper package, an NumPy. + +By default the server listens on TCP port 1950 (the year of Turing's +"Computing Machinery and Intelligence" paper. Connecting to this port, +using e.g. `telnet` or `netcat` will start a session. The role of +interrogator or player is randomly assigned. An interrogator may be +paired with either a human or a suitably prompted language model. The +task of the interrogator is to determine if they are conversing with a +human or a machine. + diff --git a/imitation/imitation/server.py b/imitation/imitation/server.py index 693dfa7a8849069b47ff54cdb0349c4d75ffbe63..5a6b8c7cb46ea4363b0c49530276332c877b0544 100644 --- a/imitation/imitation/server.py +++ b/imitation/imitation/server.py @@ -117,7 +117,7 @@ class Interrogator(Interlocutor): def handle(self): self.log.info("connecting...") self.write(f""" -Welcome to the Imitation Game. Your role is "interrogator". You get to +Welcome to the Imitation Game. Your role is INTERROGATOR. You get to ask {self.n} questions of your interlocutor to determine if they are a human or a machine. At the end of the session you will be asked which you think they are and why. If you have made up your mind and want to @@ -180,7 +180,7 @@ class Human(Interlocutor): def handle(self): self.log.info("connecting...") self.write(f""" -Welcome to the Imitation Game. Your role is HUMAN. You will be asked +Welcome to the Imitation Game. Your role is PLAYER. You will be asked {self.n} questions by an interlocutor who is attempting to find out if you are a human or a machine. Your task is to convince them that you are human. Good luck! diff --git a/imitation/setup.py b/imitation/setup.py index f77d1c9f05209ccf605d26def19c73eb3d0aa23b..340ab8f76756a54425313f138ed709d004905c27 100644 --- a/imitation/setup.py +++ b/imitation/setup.py @@ -4,7 +4,7 @@ from setuptools import setup, find_packages setup(name='imitation', version='0.2', - description='Turing Test', + description="Turing's Imitation Game", author=['William Waites'], author_email='william.waites@strath.ac.uk', keywords=['AI'], @@ -34,7 +34,7 @@ setup(name='imitation', ], entry_points={ 'console_scripts': [ - 'imitation_server = imitation.server:cli', + 'imitation = imitation.server:cli', ], }, )