Posted July 24, 2020 by Goutte
#bot
You can now test your mettle against a scary opponent : the God of Random.
Here is the whole code of the noob bot :
extends BotPlayer class_name RandomBotPlayer """ A true random bot player. Anyone can beat this. """ func choose_pawn_to_play(board:GameBoard): var pawns = board.get_pawns_with_possible_actions() return __pick_random_thing(pawns) func choose_action_for_pawn(board:GameBoard, pawn:Pawn): var actions = board.get_possible_actions_for_pawn(pawn) return __pick_random_thing(actions)