1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#![allow(unused)]
pub mod api;
mod ffi;
pub mod state;
mod logic;
use api::*;
use std::os::raw::{c_double, c_int, c_void};
use state::*;
fn partie_init() -> State
{
let ever = EverInfo::get();
let current = CurrentInfo::get(&ever);
let state = State {
ever,
current,
agents_strat: AgentLocal([AgentState {}; NB_AGENTS]),
};
state
}
fn jouer_tour(state: &mut State)
{
state.current = CurrentInfo::get(&state.ever);
for &agent in AGENTS {
let posa = position_agent(moi(), agent);
let posb = posa;
}
}
fn partie_fin(state: &mut State)
{
}