Getting Started with developing Tic-Tac-Toe

Game development with Board Game Arena Studio
Post Reply
Odanata Rex
Posts: 3
Joined: 17 March 2021, 00:57

Getting Started with developing Tic-Tac-Toe

Post by Odanata Rex »

I have experience with C/++ and am trying to learn how to develop on the BGA framework by starting very simple; Tic-Tac-Toe.

I am following this tutorial: https://boardgamearena.com/doc/Tutorial_reversi

but I failed at the very first item. I can't get my board jpeg to show up in game, despite my setup being borderline identical to the tutorial and the approach taken in other example games I've downloaded.

I can get text from my div to show up, but the css class isn't being applied at all. I even tried just making a grey box, but my page remains empty. Yes I have uploaded my files to the server. I'm not seeing any indication of exceptions so I'm not sure how to debug the css/html elements.

Can anyone recommend heavily commented projects to reverse engineer? My project is lptictactoe.
User avatar
mandrel
Posts: 22
Joined: 05 November 2020, 00:34

Re: Getting Started with developing Tic-Tac-Toe

Post by mandrel »

Have just run your project and the board is showing up fine for me. Have you tried a hard refresh in your browser (ctrl+F5 or ctrl+shift+r) to clear the cache? This will generally be necessary after updating css files.

I'm not sure of any specific projects that will be useful for your aims, but perhaps something on this list: https://en.doc.boardgamearena.com/BGA_Code_Sharing, depending on what you are after, may help if you have not seen it.
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: Getting Started with developing Tic-Tac-Toe

Post by Victoria_La »

And btw this game is actually tic-tac-toe more/less https://en.doc.boardgamearena.com/Tutorial_gomoku
Odanata Rex
Posts: 3
Joined: 17 March 2021, 00:57

Re: Getting Started with developing Tic-Tac-Toe

Post by Odanata Rex »

I can see it now. Thanks for the tip about the hard reset.
Odanata Rex
Posts: 3
Joined: 17 March 2021, 00:57

Re: Getting Started with developing Tic-Tac-Toe

Post by Odanata Rex »

I am trying to make the squares show up on the board but the game is stuck loading at 'opening the game box'

Anyway to troubleshoot this or see where it is hanging?
User avatar
Tisaac
Posts: 2743
Joined: 26 August 2014, 21:28

Re: Getting Started with developing Tic-Tac-Toe

Post by Tisaac »

Odanata Rex wrote: 19 March 2021, 22:43 I am trying to make the squares show up on the board but the game is stuck loading at 'opening the game box'

Anyway to troubleshoot this or see where it is hanging?
Use the dev console/inspector. (Ctrl maj i on most browsers)
User avatar
compte obelète
Posts: 669
Joined: 17 April 2020, 15:25

Re: Getting Started with developing Tic-Tac-Toe

Post by compte obelète »

this would be the fastest game ever! (literally need only 1 minute to finish the game).
Post Reply

Return to “Developers”