After feeding my previous blogpost into my PromptPros account, my Llama Sonar Chat agent quickly generated a passable first draft HTML file to work on.
The only slight issue I encountered was that the return value of a spliced array is another array: so to get the number out I have to do
let move = emptySpacesArray.splice(index, 1)[0]
The first draft is now at this commit.
Directions for next steps:
- Implement a proper turn system.
- Display the moves in a proper visual tic-tac-toe.