From 2a0ba5c59437746e4817f68316a058aa814eb459 Mon Sep 17 00:00:00 2001 From: Chris Bras Date: Wed, 2 Jun 2021 20:52:47 +0200 Subject: [PATCH] added game state trait --- src/state/game_state.rs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/state/game_state.rs diff --git a/src/state/game_state.rs b/src/state/game_state.rs new file mode 100644 index 0000000..6b63efd --- /dev/null +++ b/src/state/game_state.rs @@ -0,0 +1,5 @@ +trait GameState { + fn render(&self) -> String; + fn init(&self) -> u32; + fn simulate(&self) -> u32; +}