(Game is very incomplete right now) Press flag twice. Order and Chaos is a board game in which one player (Order) is trying to make 5 squares in a row vertically, horizontally, or diagonally. The second player (Chaos) is trying to prevent Order from making 5 in a row. The game ends when either all the squares are filled or 5 in a row is made. What adds a second layer of complexity to the strategy is, much like the game Dots & Boxes, both players can play either red or blue. Click on the stack to chose what color to use on your turn Note, there is a bug where you can highlight 2-4 boxes at once, but it cannot be exploited. It will always only opt for the top right most box if you do that.
Progress log: 4/13: for the life of me, I can't figure out why the diagonal check isn't working! I've looked over the script time and time again and checked my math, it should be working as far as I can tell. 4/12: Mum, get the camera! I got vertical and horizontal 5 in a row detection to work effiecently without causing lag! XD Now to deal with that pesky diagonal detection... 4/12 I've figured out my own method of detecting 5 in a rows horizontally after many may many tries 4/12: Eureka! I finally wrote a function that rounds the input to the nearest multiple of 8 ≥ the input! ---------------------------------------------------------------------------------------------------- I was inspired to make this game when I saw Tom Scott's video https://www.youtube.com/watch?v=qsjVfJur1ac in which they played this game, and I thought this would be the perfect game to clone in scratch, and I also wanted to try to make a simple AI for it. Credit for FPS counter: https://scratch.mit.edu/projects/11506643/#player