12-31-2019 09:38 AM - last edited 04-17-2020 23:14 PM
Happy New Year!!
I have created a Reversi app!
Please check the video for how to play.
○Logic
Gallery is used for the board.
The board is drawn by setting the collection with 64 records to the number of wraps of 8.
The collection has an "ID" to identify which cell and a "State" to identify the current state of the cell.
"State" is a state where there is no 0. 1 is the state where black is placed. 2 is the state where white is placed.
How to display hints.
"ComboBox" is used to display hints.
This "ComboBox" holds the "ID" of your cell and the number of pieces you can get when you place a black or white piece on that cell.
Please see the app for detailed logic.
This "ComboBox" is also used for CPU processing.
By referring to the "combo box", the pieces are arranged in a square, where the squares that can take the most enemy pieces are determined.
Thank you for reading to the end!
We look forward to your feedback.
watch?v=vFY05DsUEZ4