ai-spring2020-public's People
ai-spring2020-public's Issues
Odd Game State
turn 40(goat's turn):
GGGGT
GGGT
GGGGT
GGGGG
GGGGT
Traceback (most recent call last):
File "main.py", line 22, in <module>
stats.playAll()
File "/home/mav/Desktop/ai-spring2020-public/baghchal/stats.py", line 18, in playAll
self._matchup.turn()
File "/home/mav/Desktop/ai-spring2020-public/baghchal/matchup.py", line 20, in turn
move=self._goatAgent.propose()
File "/home/mav/Desktop/ai-spring2020-public/baghchal/scaredgoatagent.py", line 46, in propose
return random.choice(moves)
File "/home/mav/Desktop/env/lib/python3.8/random.py", line 290, in choice
raise IndexError('Cannot choose from an empty sequence') from None
IndexError: Cannot choose from an empty sequence
I'm not really sure if this is supposed to be an error so I wanted to report it as it's a possible game state that doesn't seem to be considered. It's caused by the scaredgoatagent (in-class example of a goat that looks ahead a turn) not finding any moves as no moves are possible.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.