xaya / libxayagame

MIT License
21 stars 19 forks source link

OpenChannel implementation for Xayaships #72

Closed domob1812 closed 5 years ago

domob1812 commented 5 years ago

This adds the OpenChannel implementation for Xayaships. It handles automatic moves and all necessary storage of "local" data. In particular, all the initial commit-reveal sequence is done automatically; shots are answered automatically; the game is ended automatically when all opponent ships have been hit; winner statements are signed automatically; and the on-chain close move with a winner statement is sent automatically.

With this change in, all the "actual" game logic for Xayaships is there. This is a first major milestone towards #70.