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.
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.