[Scummvm-git-logs] scummvm master -> bf0da3ad905ffe49dd21232bd3fa810e203b8aaa

Die4Ever noreply at scummvm.org
Sun Sep 25 02:07:46 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:
bf0da3ad90 GROOVIE: tweak Easier AI difficulty for modern art puzzle


Commit: bf0da3ad905ffe49dd21232bd3fa810e203b8aaa
    https://github.com/scummvm/scummvm/commit/bf0da3ad905ffe49dd21232bd3fa810e203b8aaa
Author: Die4Ever (die4ever2005 at gmail.com)
Date: 2022-09-24T21:07:27-05:00

Commit Message:
GROOVIE: tweak Easier AI difficulty for modern art puzzle

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


diff --git a/engines/groovie/logic/gallery.cpp b/engines/groovie/logic/gallery.cpp
index 8855028da58..9d0f682f677 100644
--- a/engines/groovie/logic/gallery.cpp
+++ b/engines/groovie/logic/gallery.cpp
@@ -183,7 +183,7 @@ byte GalleryGame::galleryAI(byte *pieceStatus, int depth) {
 		}
 		if (v9 == v10)
 			return 1; // I believe 1 means this is an optimal move
-		else if (_easierAi && v9 * 3 >= v10 * 2)
+		else if (_easierAi && (v9 + 1 == v10 || v9 - 1 == v10))
 			return 1; // close enough to an optimal move?
 		else
 			return (v8 + 102 * v9) / v10;// otherwise, higher numbers are better




More information about the Scummvm-git-logs mailing list