Giter VIP home page Giter VIP logo

ajuna-games's Introduction

ajuna-games

A repository of games for the Ajuna Worker environment

ajuna-games's People

Contributors

andyjsbell avatar cowboy-bebug avatar didacsf avatar raulmartinezm avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ajuna-games's Issues

bombs are not privat

the 3 player bombs shouldn't be exposed to the opponent.

Since there is only one TrustedGetter to get the Board, we need to make sure that it only includes the player bombs.

With player-specific bomb storage that would have been solved, but since we only have GetBoard it seems a little bit more complicated.

Add Scoring

To have a game score at the end I suggest adding a score that accounts for points the following way.

1 point for each stone played
1 point for every enemy stone destroyed

at the moment the score is not determining the winner, but once we will add the correct rules it will.

add blocknumber or index to gamestate

the client can currently update the board bombs decreased (in bomb phase) or on player change (in play phase)

to avoid this I would suggest we add an index to the game state, best would be the block number, which would also allow timing later.

I suggest adding blocknumber to gamestate updated on each storage change,

panick, when dropping a stone at a locked position.

image

Trying to drop a stone here at West 7, where there is already a stone, will panic.

worker_1      | thread '<unnamed>' panicked at 'index out of bounds: the len is 10 but the index is 255', /root/.cargo/git/checkouts/ajuna-games-9c75f15c32f67658/159ae6d/dot4gravity/src/lib.rs:151:9
worker_1      | note: Call backtrace::enable_backtrace with 'PrintFormat::Short/Full' for a backtrace.
worker_1      | fatal runtime error: failed to initiate panic, error 5

Add last move

for the client it is important to know where the last move has been done (Side, number), so an animation can be done from the dropping side.

I request to add to GameState

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.