From 9aec3e18aebf8e3f77fd6ffc05810d0c7d4787af Mon Sep 17 00:00:00 2001 From: Die4Ever Date: Thu, 29 Dec 2022 23:05:11 -0500 Subject: [PATCH] GROOVIE: T11H mouse trap: easier AI give fixed initial board state instead of randomized intial board state --- engines/groovie/logic/mousetrap.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engines/groovie/logic/mousetrap.cpp b/engines/groovie/logic/mousetrap.cpp index 9c41d33339b..133d837b593 100644 --- a/engines/groovie/logic/mousetrap.cpp +++ b/engines/groovie/logic/mousetrap.cpp @@ -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);