From 0afed1540a50b7ac9246bc17f09685f2c2566e35 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 11 Jan 2004 23:31:37 +0000 Subject: [PATCH] smarter AI handling of mines --- stepmania/src/Player.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index 8c13d33da7..1c645ef110 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -734,7 +734,21 @@ void PlayerMinus::Step( int col, RageTimer tm ) // as "mine was hit" and everything else as "mine was avoided" if( tn == TAP_MINE ) { - if( score > TNS_GOOD ) + // The CPU hits a lot of mines. Only consider hitting the + // first mine for a row. We know we're the first mine if + // there are are no mines to the left of us. + for( int t=0; t= get_to_avoid ) { return; // avoided }