From d68d1a33f52ad9ddeb97c6e45f1e66cdf27c67f5 Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Sat, 27 Jan 2024 12:36:02 +0200 Subject: Implementing uncertain moves as bot option. --- bots/bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bots/bot.py') diff --git a/bots/bot.py b/bots/bot.py index a097a8d..5ad0bd2 100644 --- a/bots/bot.py +++ b/bots/bot.py @@ -3,7 +3,8 @@ from tui import Action class Bot(): """ Bot - perusluokka perittäväksi """ - def __init__(self): + def __init__(self, **opts): + self.uncertain = opts['uncertain'] if 'uncertain' in opts else False self.hints = 0 def neighbours(self,dx,dy,x,y): -- cgit v1.2.3