[Scummvm-git-logs] scummvm master -> 9aec3e18aebf8e3f77fd6ffc05810d0c7d4787af

Die4Ever noreply at scummvm.org
Fri Dec 30 04:05:19 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

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


Commit: 9aec3e18aebf8e3f77fd6ffc05810d0c7d4787af
    https://github.com/scummvm/scummvm/commit/9aec3e18aebf8e3f77fd6ffc05810d0c7d4787af
Author: Die4Ever (die4ever2005 at gmail.com)
Date: 2022-12-29T23:05:11-05:00

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

Changed paths:
    engines/groovie/logic/mousetrap.cpp


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);
 




More information about the Scummvm-git-logs mailing list