Commit e25d55a7 authored by Sylvain Lagrue's avatar Sylvain Lagrue
Browse files

state svg + début des stats

parent c60b6ed7
from pprint import pprint
import sys
from crocomine_client import CrocomineClient
import time
def test():
server = "http://localhost:8000"
group = "Groupe 12"
members = "Khaled et Sylvain"
password = "un mot de passe introuvable mais pas trop" # ATTENTION, le mot de passe est en clair dans le fichier
croco = CrocomineClient(server, group, members, password, True)
def part1():
## MAP 1
print("new_grid")
status, msg, grid_infos = croco.new_grid()
print(status, msg)
......@@ -19,6 +15,7 @@ def test():
print(status, msg)
pprint(infos)
## MAP 2
status, msg, grid_infos = croco.new_grid()
print(msg, status)
pprint(grid_infos)
......@@ -40,6 +37,8 @@ def test():
print(status, msg)
pprint(infos)
def part2():
## MAP 3
status, msg, grid_infos = croco.new_grid()
print(status, msg)
pprint(grid_infos)
......@@ -56,6 +55,7 @@ def test():
print(status, msg)
pprint(infos)
## MAP 4
status, msg, grid_infos = croco.new_grid()
print(status, msg)
pprint(grid_infos)
......@@ -88,5 +88,26 @@ def test():
print(status, msg)
pprint(infos)
def test():
id = sys.argv[1]
print(sys.argv)
if id:
group = "Groupe " + id
members = "Khaled et Sylvain " + id
else:
group = "Groupe 12"
members = "Khaled et Sylvain "
server = "http://localhost:8000"
password = "un mot de passe introuvable mais pas trop" # ATTENTION, le mot de passe est en clair dans le fichier
global croco
# croco = CrocomineClient(server, group, members, password, True)
croco = CrocomineClient(server, group, members, password)
part1()
part2()
if __name__ == "__main__":
test()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment