ghohl30 / Hivemind

python implementation of the board game Hive
0 stars 0 forks source link

Generate piece lables from game mode #8

Open ghohl30 opened 4 months ago

ghohl30 commented 4 months ago

In the board class in hive.py the lables should be generated from the game_mode. Otherwise the matrix methods that depend on the lables dont work if the game mode is changed.

The lables should be auto generated from the game_mode

here you can play with the number and types of pieces game_mode = [('QueenBee', 1), ('Ant',3), ('Beetle', 2), ('Spider', 2), ('Grasshopper', 3)]

game_mode = [('Bee', 1), ('Beetle', 2)]

List of labels
labels = ['wQ1', 'wA1', 'wA2', 'wA3', 'wG1', 'wG2', 'wG3', 'wB1', 'wB2', 'wS1', 'wS2', 
            'bQ1', 'bA1', 'bA2', 'bA3', 'bG1', 'bG2', 'bG3', 'bB1', 'bB2', 'bS1', 'bS2']