Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CS101 - Cognitive Science and Artificial Intelligence - Sem 2 First Half
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Russell Hall SE2023
CS101 - Cognitive Science and Artificial Intelligence - Sem 2 First Half
Commits
ab550d96
Commit
ab550d96
authored
1 year ago
by
William Waites
Browse files
Options
Downloads
Patches
Plain Diff
cosmetic, and bump version
parent
a98304e6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
imitation/imitation/server.py
+9
-9
9 additions, 9 deletions
imitation/imitation/server.py
imitation/setup.py
+1
-1
1 addition, 1 deletion
imitation/setup.py
with
10 additions
and
10 deletions
imitation/imitation/server.py
+
9
−
9
View file @
ab550d96
...
@@ -117,11 +117,11 @@ class Interrogator(Interlocutor):
...
@@ -117,11 +117,11 @@ class Interrogator(Interlocutor):
def
handle
(
self
):
def
handle
(
self
):
self
.
log
.
info
(
"
connecting...
"
)
self
.
log
.
info
(
"
connecting...
"
)
self
.
write
(
f
"""
self
.
write
(
f
"""
Welcome to the Imitation Game. Your role is
"
interrogator
"
. You
Welcome to the Imitation Game. Your role is
"
interrogator
"
. You
get to
get to
ask
{
self
.
n
}
questions of your interlocutor to determine if
ask
{
self
.
n
}
questions of your interlocutor to determine if
they are a
they are a
human or a machine. At the end of the session you
human or a machine. At the end of the session you
will be asked which
will be asked which
you think they are and why. If you have made
you think they are and why. If you have made
up your mind and want to
up your mind and want to
end the session early, type
"
END
"
all caps.
end the session early, type
"
END
"
all caps.
Good luck!
Good luck!
...
@@ -181,10 +181,10 @@ class Human(Interlocutor):
...
@@ -181,10 +181,10 @@ class Human(Interlocutor):
def
handle
(
self
):
def
handle
(
self
):
self
.
log
.
info
(
"
connecting...
"
)
self
.
log
.
info
(
"
connecting...
"
)
self
.
write
(
f
"""
self
.
write
(
f
"""
Welcome to the Imitation Game. Your role is HUMAN. You will be
Welcome to the Imitation Game. Your role is HUMAN. You will be
asked
asked
{
self
.
n
}
questions by an interlocutor who is attempting
{
self
.
n
}
questions by an interlocutor who is attempting
to find out if
to find out if
you are a human or a machine. Your task is to
you are a human or a machine. Your task is to
convince them that you
convince them that you
are human. Good luck!
are human. Good luck!
Please wait to be connected to an interlocutor...
"""
,
colour
=
self
.
serv_colour
)
Please wait to be connected to an interlocutor...
"""
,
colour
=
self
.
serv_colour
)
...
...
This diff is collapsed.
Click to expand it.
imitation/setup.py
+
1
−
1
View file @
ab550d96
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
from
setuptools
import
setup
,
find_packages
from
setuptools
import
setup
,
find_packages
setup
(
name
=
'
imitation
'
,
setup
(
name
=
'
imitation
'
,
version
=
'
0.
1
'
,
version
=
'
0.
2
'
,
description
=
'
Turing Test
'
,
description
=
'
Turing Test
'
,
author
=
[
'
William Waites
'
],
author
=
[
'
William Waites
'
],
author_email
=
'
william.waites@strath.ac.uk
'
,
author_email
=
'
william.waites@strath.ac.uk
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment