game.AI package

Submodules

game.AI.ai_tools module

game.AI.ai_tools.find_all_possible_moves(list_of_white_pieces, list_of_black_pieces, color, settings)[source]
game.AI.ai_tools.max_score(best_value, this_value)[source]
game.AI.ai_tools.min_score(best_value, this_value)[source]
game.AI.ai_tools.move_piece_on_list(list_of_pieces, piece_cords, target_cords)[source]
game.AI.ai_tools.remove_piece_from_list(lista, cordy_zbitego)[source]
game.AI.ai_tools.the_best_move(all_possible_moves)[source]

game.AI.test_ai module

class game.AI.test_ai.TestAi(methodName='runTest')[source]

Bases: unittest.case.TestCase

testGuessingEnemyMoves()[source]
testMultipleAttack()[source]
testMultipleAttackRecursiveFunction()[source]
testNoPossibleMovement()[source]
testNotMakingLosingMoves()[source]
testSettingForceAttack()[source]
testSettingMultipleAttack()[source]
testSimpleAttackMove()[source]
testSimpleMove()[source]

Module contents

game.AI.ai(list_of_white_pieces, list_of_black_pieces, settings)[source]