Skip to content

Arcade › 三棋AI

三棋AI

0
Remix it

About 三棋AI

How to play

Play right here in your browser without an account or download. Follow the controls shown in the game, and use Play fullscreen for a larger view.

Make your own game

三棋AI was built with the Cinevva game creator: describe the game you want in chat, watch it get built, and play it in your browser minutes later.

Remix 三棋AI opens the real game in the creator and forks its actual files, chat and design doc, so you start from the code rather than from a description.

Read the build brief for 三棋AI

Cinevva's analyzer read this game's design doc and its source, then wrote the brief below. "Make your own" hands it to the game creator as your opening message, so you start from a real spec rather than a one-line idea.

Create a polished, responsive Chinese-language tabletop board-game collection titled “三棋AI” (“Three Chess AI”) with three tabs for Xiangqi (象棋), Gomoku/Five-in-a-Row (五子棋), and Go (围棋). It is a static, front-facing 2D canvas game: the board fills the available central area and scales to fit desktop or mobile, with a dark warm brown interface around a large golden-tan wooden board. Render subtle horizontal woodgrain, a dark brown border, thin brown grid lines, and soft board shadow. Keep the camera fixed overhead/flat; all pieces are placed on grid intersections. The provided view shows the Gomoku-style board: a square 15-by-15 intersection grid with nine small star points in a 3-by-3 arrangement, on warm wood. Other modes change the board dimensions and marks appropriately.

The header has a gold-toned title and three compact selectable tabs: 象棋, 五子棋, 围棋. Xiangqi is the initial selected mode. A ↺ 新局 button resets the current game. Beneath it, provide a VS toggle for playing against the computer; when enabled reveal three difficulty buttons, 简单 / 中等 / 困难, with the selected one highlighted. A centered status strip reports whose turn it is, announces the winner at game end, and in Go additionally shows a 虚着 (pass) button and black/white capture counts. Use warm dark-brown UI panels, muted cream text, gold highlights, and a green on-state for the AI switch. All controls should be clickable/touch-friendly; board interaction is by clicking/tapping near an intersection. Include keyboard shortcuts R to reset, 1/2/3 to switch game modes, and A to toggle AI.

Game mode details:
- Xiangqi uses a 9-column by 10-row Chinese chess board, with the center river gap, palace diagonals, and the river inscription 楚河漢界. Place traditional Chinese-character pieces in the standard starting arrangement: black at the top, red at the bottom; round ivory pieces with a red or dark rim, subtle bevel/highlight and shadow, and red/black character lettering. Red moves first. Support the normal piece movement shown by the game logic: general within palace and flying-general capture along an open file; advisors diagonally in palace; elephants two diagonal points with blocked-eye and river restriction; horses with blocked-leg restriction; rooks along open ranks/files; cannons with screen-capture behavior; soldiers forward, then sideways after crossing the river. Reject moves that leave the moving general in check. Finish when the next side has no legal move and show the winner. Select a piece then select its destination; allow selecting another friendly piece to change selection. Highlight the last destination with a translucent gold ring.
- Gomoku uses a 15-by-15 square grid with nine star points, initially empty. Black moves first, alternating black and white stones; place stones on intersections and win when a move creates a contiguous run of five or more horizontally, vertically, or diagonally. Stones are glossy shaded black and white circles with soft shadows; show a small contrasting last-move marker. Do not allow occupied intersections.
- Go uses a 19-by-19 grid with nine star points at the 3rd, 9th, and 15th indices in each direction. Black moves first; players alternate placing black and white stones on empty intersections. Implement connected groups, liberties, capture of adjacent enemy groups with no liberties, and reject suicide moves. Provide pass turns via 虚着; two consecutive passes end the game. At game end show simple territory scoring by empty connected regions bordered by only one color, added to stones and captured-stone totals; show black and white scores and winner/draw. Display captures as 黑俘 and 白俘 counts. On scoring, subtly tint owned territory points. Use the same polished black/white stones and last-move marker as Gomoku.

When AI is off, the game is hot-seat local two-player. When AI is on, the human plays red in Xiangqi and white in Gomoku/Go; the computer plays black, takes its turn after a short thinking pause, and status reads 🤖 电脑思考中... while it considers a move. Make the three difficulty levels meaningful: easy plays a random legal move; medium chooses randomly among a pool of promising moves; hard takes the top-scored move. Preserve separate board states when switching tabs, and reset only the currently selected game. Show victory status clearly with a trophy and gold-highlighted result. Add subtle click/place feedback and restrained interface sounds if available, but prioritize the clear wooden-board presentation and responsive controls. Do not add unrelated game modes, timers, lives, or combat mechanics.

More free browser games

Browse the whole Arcade →