summaryrefslogtreecommitdiff
path: root/bots
diff options
context:
space:
mode:
authorAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-02-05 09:14:28 +0200
committerAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-02-05 09:14:28 +0200
commit282c0fc9f8bb9f9ef45db0d2227b2d31f36620d3 (patch)
tree6a41d6b6c66ac3c91aa465fa6e7094f40b8e2f2f /bots
parentafe4062d46aa9e8ad115edb1b1c1dad5e42cf002 (diff)
Updating tests and removing unused returns and function.
Diffstat (limited to 'bots')
-rw-r--r--bots/bot.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/bots/bot.py b/bots/bot.py
index 51151e0..2f3baae 100644
--- a/bots/bot.py
+++ b/bots/bot.py
@@ -107,14 +107,6 @@ class Bot():
count+=1
return count
- def remove_unknowns(self, tiles):
- """ poistaa tunnistamattomat laatat """
- count=0
- for tile in list(tiles):
- if not self.known_tile(tile):
- tiles.remove(tile)
- count+=1
- return count
def get_interesting_tiles(self):
""" palauttaa laatat joiden naapureissa on vaihtelua """