Task Request [Great for beginners!] Build a Simple Game LogicsteemCreated with Sketch.

in #utopian-io6 years ago (edited)

Build a basic game logic as a template for an open source decentralized blockchain game

I recently started a new open source project to build a decentralized game running on the Steem blockchain. You can find the repository here and the original post here.

This task request will also be posted as an issue on the Github repository.

Details

The task is to build a simple, turn-based game of your choice's game logic. Example games (ranging from easiest to hardest) are tic-tac-toe, checkers, and chess. This game should be implemented in the src/core/game/game.js file and not have any dependencies (except maybe console-handler/console-handler.js). There should be two functions exported from the file:

  • initState() should return an object representing the state of the game when it starts e.g for tic-tac-toe (you can create your own specification):
{
   isXTurn: true,
   isOTurn: false,
   turnNum: 0,
   board: [...]
}
  • completeMove(state, move) should return the state variable after move is applied. An example move argument for tic-tac-toe might be (you can create your own specification):
{
   positionToPlaceX: 2,
   positionToPlaceY: 0    // The player completing the move is inferred by the current state
}

Also, include some sort of function that can be used to test the game in the CLI. Don't spend too much time on it, just make sure to have a way to test the game.

Components

No sections of the software should be affected, only the game.js file should be modified (You may also modify index.js to test the game or other files necessary to test).

Deadline

This should be completed by Monday November 26, 2018.

Communication

To communicate with me about this task, either comment on the post or the github issue or direct message me in Discord (I am 𝕾𝖍𝖗𝖊𝖉𝖟7#8239). Once you have completed the task, create a pull request on the Github page.

Github

You can find me on Github at: https://github.com/shredz7

Sort:  

Thanks for the task request, @shredz7! It seems clear to me what you want implemented, so good luck on finding someone who can complete the task for you!


Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Testing comment:

!utbot --status open --skills "JavaScript" --deadline 2018-11-26 --discord <@397896215725080577> --description "Build a simple, turn-based game logic of your choice."

Thank you for your review, @amosbastian! Keep up the good work!

This should be completed by Monday 11-21-2018.

^^^I think you've a typo in that date? ;-)
@scipio

:p I fixed it. Thank you so much @scipio @steem-ua!

Hey, @shredz7!

Thanks for contributing on Utopian.
We’re already looking forward to your next task request!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63342.09
ETH 2658.68
USDT 1.00
SBD 2.81