summaryrefslogtreecommitdiff
path: root/src/engine
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-09-06 21:20:04 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-09-06 21:20:04 +0200
commit4ad0035f4f11b41e400a1f567fdcd3541fa3f21e (patch)
tree95e8ad882f6b6c8be9c6d7a4bed2eaa7b5d2caa2 /src/engine
parent6c8d7fc3a3a00fcee50592ef618d2b88fed0dbfe (diff)
Filled in the remaining TODOs on the tree search
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/constants.rs3
-rw-r--r--src/engine/status.rs1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/engine/constants.rs b/src/engine/constants.rs
index 7d260e8..951a756 100644
--- a/src/engine/constants.rs
+++ b/src/engine/constants.rs
@@ -2,6 +2,9 @@ pub const FULL_MAP_WIDTH: u8 = 16;
pub const SINGLE_MAP_WIDTH: u8 = FULL_MAP_WIDTH/2;
pub const MAP_HEIGHT: u8 = 8;
+pub const MAX_MOVES: u16 = 400;
+pub const INIT_SEED: [u8;16] = [0x7b, 0x6a, 0xe1, 0xf4, 0x41, 0x3c, 0xe9, 0x0f, 0x67, 0x81, 0x67, 0x99, 0x77, 0x0a, 0x6b, 0xda];
+
pub const MISSILE_COOLDOWN: usize = 3;
pub const MISSILE_COOLDOWN_STATES: usize = MISSILE_COOLDOWN+1;
pub const MISSILE_SPEED: usize = 2;
diff --git a/src/engine/status.rs b/src/engine/status.rs
index 1fa7ac0..d6ee4dd 100644
--- a/src/engine/status.rs
+++ b/src/engine/status.rs
@@ -5,3 +5,4 @@ pub enum GameStatus {
OpponentWon,
Draw
}
+