CognitiveScience commited on
Commit
d55bdb6
1 Parent(s): 2ffc61b

Update dcogsphere.py

Browse files
Files changed (1) hide show
  1. dcogsphere.py +12 -12
dcogsphere.py CHANGED
@@ -90,9 +90,9 @@ class RockPaperScissors(Model):
90
  scora=self.score1.text
91
  scorb=self.score2.text
92
  result = client.predict(
93
- scora,
94
- "played",
95
- scorb,
96
  fn_index=0)
97
  log.score1=self.score1.text
98
  log.score2=self.score2.text
@@ -110,12 +110,12 @@ class ProceduralPlayer(ACTR):
110
  choice.choose('paper')
111
  def play_scissors(goal='play rps',choice='waiting:True'):
112
  choice.choose('scissors')
113
- #def logy():
114
- # env=RockPaperScissors()
115
- # env.model1=ProceduralPlayer()
116
- # env.model1.choice=env.choice1
117
- # env.model2=ProceduralPlayer()
118
- # env.model2.choice=env.choice2
119
- # response=env.run()
120
- # log_data = env.log
121
- # return log_data[0]['score1']
 
90
  scora=self.score1.text
91
  scorb=self.score2.text
92
  result = client.predict(
93
+ "ACT-R RPS"
94
+ "100",
95
+ "Model 1: " + scora + " Model 2: "+ scorb
96
  fn_index=0)
97
  log.score1=self.score1.text
98
  log.score2=self.score2.text
 
110
  choice.choose('paper')
111
  def play_scissors(goal='play rps',choice='waiting:True'):
112
  choice.choose('scissors')
113
+
114
+ env=RockPaperScissors()
115
+ env.model1=ProceduralPlayer()
116
+ env.model1.choice=env.choice1
117
+ env.model2=ProceduralPlayer()
118
+ env.model2.choice=env.choice2
119
+ env.run()
120
+ #log_data = env.log
121
+ #return log_data[0]['score1']