Go to file
Adrian Gunnar Lauterer 1e8a76aca3 added build and module options to flake
Co-authored-by: oysteikt <oysteikt@pvv.ntnu.no>
2024-03-24 03:50:44 +01:00
.devenv added build and module options to flake 2024-03-24 03:50:44 +01:00
src added build and module options to flake 2024-03-24 03:50:44 +01:00
.gitignore added build and module options to flake 2024-03-24 03:50:44 +01:00
Cargo.lock added build and module options to flake 2024-03-24 03:50:44 +01:00
Cargo.toml added build and module options to flake 2024-03-24 03:50:44 +01:00
README.MD readme: add todo list 2024-01-30 02:06:06 +01:00
default.nix added build and module options to flake 2024-03-24 03:50:44 +01:00
flake.lock init 2024-01-27 21:35:09 +01:00
flake.nix added build and module options to flake 2024-03-24 03:50:44 +01:00
openapi.yaml fixed game creation to match server code. 2024-02-14 20:25:36 +01:00

README.MD

Ozai

A game server for sharing gamestate of azul boards

Todo

  • Azul
    • Nytt spill
    • fill på begynnelse av dag
    • scoring på slutten av hver dag
    • sette startspiller på slutten av hver dag
    • avslutte spillet
    • telle bonuspoeng
    • Gjøre trekk
      • strict
      • loose
      • random
    • Serialization/Deserialization regler - serde tags
    • HTTP Stack
      • Create game
      • Do Move
      • Get game state
    • Sjakk-klokke
    • Visualisering

JSON

game: {
    current_player: 0-4
    bag: {
        blue: 0-20 (integer),
        yellow: 0-20 (integer),
        red: 0-20 (integer),
        black: 0-20 (integer),
        white: 0-20 (integer),
    },
    lid: {
        blue: 0-20 (integer),
        yellow: 0-20 (integer),
        red: 0-20 (integer),
        black: 0-20 (integer),
        white: 0-20 (integer),
    },
    factories: (5-9) [
        {    
            blue: 0-4 (integer),
            yellow: 0-4 (integer),
            red: 0-4 (integer),
            black: 0-4 (integer),
            white: 0-4 (integer),
        },
        ...,
    ],
    market: {
            start: 0-1 (integer),
            blue: 0-20 (integer),
            yellow: 0-20 (integer),
            red: 0-20 (integer),
            black: 0-20 (integer),
            white: 0-20 (integer),
    },
    players: (2-4) [
        {
            points: (integer),
            patternLines: [
                {
                    color: (string),
                    number: int,
                },
            ],

            wall: [
                {
                    blue: (bool),
                    yellow: (bool),
                    red: (bool),
                    black: (bool),
                    white: (bool),
                },
            ],
            floor: {
                start: 0-1 (integer),
                blue: 0-4 (integer),
                yellow: 0-4 (integer),
                red: 0-4 (integer),
                black: 0-4 (integer),
                white: 0-4 (integer),
            },
        },
    ]
}