abyala / spirit-island Goto Github PK
View Code? Open in Web Editor NEWPersonal tracker for Spirit Island games
License: Apache License 2.0
Personal tracker for Spirit Island games
License: Apache License 2.0
Includes random-game, games-against, games-with-player, spirits-in-[game, and games-with-spirit.
Data format changes to {:players {:spirit s, :board b, :rating r}
with the board being a keyword.
CLI format changes from record-game win 7 england=4 Andrew=starlight,4
to record-game win 7 england=4 Andrew=starlight,e,4
. Board comes before rating.
Test that parsing old data supports a missing board.
Always print the full usage for all commands, both for the base help message or when there is a parser error in a command execution. Currently only affects create-game and record-game.
Metadata for a spirit should support an optional map of {:aspects {:s {:name n}}}
.
CLI for create-game
should suggest a spirit with an optional aspect; it should also support base spirits too.
CLI for record-game
should change from Andrew=river,d,4
to Andrew=river,travel,d,4
or Andrew=river,base,d,4
or Andrew=river,,d,4
.
User game data should support {name {:spirit s, :aspect :a, :board :b, :rating n}}
with :aspect
being nil
or missing if the base spirit is used.
Allow the function to support either a single player name or the existing collection of names.
Need to update:
record-game
commandOptions include:
For now, print out the number of games and the win rate.
Not currently supporting boards or adversary levels.
Change input from create-game Andrew;Bob
to record-game Andrew=1;Bob=2
where any missing parameters implies one spirit.
Certain operations (mostly create-game for now) should support the ditto operation.
Support requires:
:previous-request
stringrun-cli
by default clears out that string after every requestsvalidate-state
ensures that a passed-in state meets the necessary structure - for now, it has non-nil keys of :metadata
and :users
execute
function becomes more complex and can return:nil
- success and no change to state, other than clearing out the ditto message:exit
- special code to exit the CLIpreserve-request
- special code to retain the state but also set the previous-command
fieldstate
to provide an updated state and other information; in this case, an optional :preserve-request
flag, so long as the state
passes validationstate
- an updated state, so long as it passes validationrun-cli
checks the response from execute
and performs as expected:exit
for the exit
commandcreate-game
preserve the request if it passes validationA declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.