Ради вашего удобства наш сайт использует cookies! Узнать больше! Мы используем cookies

Tic Tac Toe Game

Tic Tac Toe Game Controller for Stormworks [b]Overview[/b] Play Tic Tac Toe with your friends—or against the machine—in your Stormworks builds. Render a classic 3×3 grid, register touch input for each cell, detect wins and draws, and reset on demand. [b]Key Features[/b] [list] [*] Plug-and-play: Connect any 3×3 (or larger) Stormworks-compatible monitor (touch-capable) to video out and composite in. [*] Player selection: Input the current player on channel 9 (1 = X, 2 = O). [*] Touch controls: Tap a cell to place your mark; tap the popup overlay to reset after a win or draw. [*] Win & draw detection: Automatic checks of all rows, columns, and diagonals. [*] Reset popup: Translucent overlay shows “X wins!”, “O wins!” or “Draw!”, then resets on tap. [/list] [b]Tactical Notes[/b] [list] [*] Requires at least a 3×3 monitor resolution for proper grid alignment. [/list] [b]Setup[/b] 1. Place the Lua microcontroller and link its video output to your screen. 2. Wire composite in: - [i]Channel 3[/i]: touch X - [i]Channel 4[/i]: touch Y - [i]Channel 1[/i]: press boolean [b]Usage[/b] - the grid appears. - Tap a cell to make your move. - After a win or draw, a popup appears—tap again to reset.