generated from mwc/lab_tic_tac_toe
I updated the notes and strategy for the Computer Player.
Checkpoint 3: I think that human cognition is pretty similar to the computer learning rules, but we don't often think about rules of cognition like we do with rules for computer thinking, and our understanding of the brain is probably not as complete as our understanding of computers. Writing a program like this is like starting with a brain that hasn't had any previous inputs, but it's difficult to imagine a brain that hasn't had any inputs. I also feel like memory is probably the most unique thing in human cognition compared to the computer analog, because memory formation is affected by emotion, which doesn't really have a computer analog yet? Also the effect of aging and injury?
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from click import Choice, prompt
|
||||
from strategy.random_strategy import RandomStrategy
|
||||
from strategy.lookahead_strategy import LookaheadStrategy
|
||||
from ttt.game import TTTGame
|
||||
import random
|
||||
|
||||
@@ -24,7 +25,7 @@ class TTTComputerPlayer:
|
||||
def __init__(self, name):
|
||||
"Sets up the player."
|
||||
self.name = name
|
||||
self.strategy = RandomStrategy(TTTGame())
|
||||
self.strategy = LookaheadStrategy(TTTGame(), deterministic=False)
|
||||
|
||||
def choose_action(self, state):
|
||||
"Chooses a random move from the moves available."
|
||||
|
||||
Reference in New Issue
Block a user