GROOVIE: T11H mouse trap: easier AI give fixed initial board state instead of randomized intial board state

This commit is contained in:
Die4Ever 2022-12-29 23:05:11 -05:00
parent 1483a30125
commit 9aec3e18ae

View File

@ -133,6 +133,10 @@ void MouseTrapGame::init() {
initX[6] = 4;
initX[7] = 4;
// easier AI gives a fixed board state, because the random configurations can give you some bad ones
if(_easierAi)
_random.setSeed(711);
for (int i = 7; i >= 0; i--) {
int8 j = _random.getRandomNumber(i);