wadaboa / tablut Goto Github PK
View Code? Open in Web Editor NEWTablut board game player for Fundamentals of Artificial Intelligence class at UNIBO
License: MIT License
Tablut board game player for Fundamentals of Artificial Intelligence class at UNIBO
License: MIT License
Traceback (most recent call last):
File "c:\python37\lib\threading.py", line 926, in _bootstrap_inner
self.run()
File "c:\python37\lib\threading.py", line 870, in run
self._target(*self._args, **self.kwargs)
File "c:\python37\lib\site-packages\tablut_player_main.py", line 98, in play
my_move = get_move(game, game_state, conf.MOVE_TIMEOUT-10)
File "c:\python37\lib\site-packages\tablut_player\strategy.py", line 95, in get_move
move = alphabeta_player(game, state, timeout, max_depth)
File "c:\python37\lib\site-packages\tablut_player\strategy.py", line 110, in alphabeta_player
return alphabeta_cutoff_search(state, game, timeout, alphabeta_cutoff_test, heuristic, max_depth)
File "c:\python37\lib\site-packages\tablut_player\strategy.py", line 79, in alphabeta_cutoff_search
v, total = max_value(game.result(state, a), best_score, beta, 1)
File "c:\python37\lib\site-packages\tablut_player\strategy.py", line 43, in max_value
alpha, beta, depth + 1)
File "c:\python37\lib\site-packages\tablut_player\strategy.py", line 60, in min_value
alpha, beta, depth + 1)
File "c:\python37\lib\site-packages\tablut_player\strategy.py", line 43, in max_value
alpha, beta, depth + 1)
File "c:\python37\lib\site-packages\tablut_player\strategy.py", line 55, in min_value
return eval_fn(game.turn, state, gutils.other_player(state.to_move)), 1
File "c:\python37\lib\site-packages\tablut_player\strategy.py", line 124, in heuristic
return black_heuristic(turn, state)
File "c:\python37\lib\site-packages\tablut_player\strategy.py", line 133, in black_heuristic
value -= king_moves_to_goals_count(state.pawns)
File "c:\python37\lib\site-packages\tablut_player\strategy.py", line 181, in king_moves_to_goals_count
distance = TablutBoard.simulate_distance(pawns, king, goal)
File "c:\python37\lib\site-packages\tablut_player\board.py", line 274, in simulate_distance
moves = cls.legal_moves(pawns, initial_coords)
File "c:\python37\lib\site-packages\tablut_player\board.py", line 84, in legal_moves
cls._possible_positions(pawn_coords)
File "c:\python37\lib\site-packages\tablut_player\board.py", line 95, in _possible_positions
TablutBoardPosition(row=i, col=pawn_coords.col)
AttributeError: 'NoneType' object has no attribute 'col'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.