Skip to content
A Battleship implementation built using the game framework's Truffle box
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
contracts
core
migrations
scripts
src
test
.babelrc
.gitignore
LICENSE
README.md
package.json
server.js
truffle-box.json
truffle-config.js
webpack.config.js

README.md

Battleship: An Oasis Game with Secret State

This example game was made using the Oasis game box. If you're unfamiliar with the framework, it's best to first take a look at the following, simpler examples:

  • Tic Tac Toe: This Truffle box gives a more detailed overview of the game project, and describes how to get started with your own game.
  • Connect Four: This repository provides an example of how the game framework's Truffle box can be extended into a (slightly) more sophisticated game.

Once you're familiar with the basics, this project demonstrates how to create an Oasis game that takes advantage of confidential contract state. Most turn-based games require confidential state in some form or another: As an example, Poker requires that the deck be kept secret from both the players and the dealer (confidential to all), while players' hands are confidential only to other players.

In Battleship, each player's ship placement needs to be kept secret.

You can’t perform that action at this time.