[iagno] Enlarge infinity.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [iagno] Enlarge infinity.
- Date: Wed, 22 May 2019 13:01:02 +0000 (UTC)
commit 7bb6d65275b606c3de4230a5c64ec6a6ae295fd8
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat May 4 17:18:12 2019 +0200
Enlarge infinity.
src/computer-reversi.vala | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/computer-reversi.vala b/src/computer-reversi.vala
index 383dd04..23c4045 100644
--- a/src/computer-reversi.vala
+++ b/src/computer-reversi.vala
@@ -39,10 +39,10 @@ private class ComputerReversi : ComputerPlayer
/* Game being played */
private Game game;
- /* Big enough. Don't use int16.MIN / int16.MAX, because int16.MIN ≠ - int16.MAX */
- private const int16 POSITIVE_INFINITY = 10000;
- private const int16 NEGATIVE_INFINITY = -10000;
- private const int16 LESS_THAN_NEGATIVE_INFINITY = -10001;
+ /* do not forget int16.MIN ≠ - int16.MAX */
+ private const int16 POSITIVE_INFINITY = 32000;
+ private const int16 NEGATIVE_INFINITY = -32000;
+ private const int16 LESS_THAN_NEGATIVE_INFINITY = -32001;
/* Strength */
private uint8 difficulty_level;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]