summaryrefslogtreecommitdiff
path: root/game_server/src/main.rs
diff options
context:
space:
mode:
authornatrixaeria <janng@gmx.de>2019-05-15 23:46:11 +0200
committernatrixaeria <janng@gmx.de>2019-05-15 23:46:11 +0200
commit2f9e5dfaac05538fdf4513569b4df6872ee85b89 (patch)
tree605a75fb41a09c892a8c8f3af16e984f38e06297 /game_server/src/main.rs
parent73eb78e3ac5eb7d382c1aca98da84cd866d54570 (diff)
Add web client functionality
additionally added -r feature to build.sh, which reverses build output.
Diffstat (limited to 'game_server/src/main.rs')
-rw-r--r--game_server/src/main.rs13
1 files changed, 9 insertions, 4 deletions
diff --git a/game_server/src/main.rs b/game_server/src/main.rs
index 7e08b46..f7a1085 100644
--- a/game_server/src/main.rs
+++ b/game_server/src/main.rs
@@ -1,22 +1,27 @@
mod group;
+mod test_group;
mod lobby;
+mod backend_connection;
#[macro_use] extern crate log;
use pretty_env_logger;
-use group::Group;
+use test_group::TestGroup;
use lobby::Lobby;
+use backend_connection::BackendConnection;
fn main() {
pretty_env_logger::init();
let mut lobby = Lobby::new();
- lobby.add_group(Group::new(0, "Test".to_string()));
- lobby.add_group(Group::new(1, "Very Serious".to_string()));
for group in lobby.iter() {
group.run()
}
- loop {}
+ let mut backend = BackendConnection::new("http://129.13.215.68:5000");
+ loop {
+ backend.request("/scribble").unwrap();
+ println!("{:?}", backend.get_response());
+ }
}