Page 1 of 1

Getting Started with developing Tic-Tac-Toe

Posted: 17 March 2021, 01:05
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.

Re: Getting Started with developing Tic-Tac-Toe

Posted: 17 March 2021, 10:41
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.

Re: Getting Started with developing Tic-Tac-Toe

Posted: 17 March 2021, 13:26
by Victoria_La
And btw this game is actually tic-tac-toe more/less https://en.doc.boardgamearena.com/Tutorial_gomoku

Re: Getting Started with developing Tic-Tac-Toe

Posted: 17 March 2021, 22:47
by Odanata Rex
I can see it now. Thanks for the tip about the hard reset.

Re: Getting Started with developing Tic-Tac-Toe

Posted: 19 March 2021, 22:43
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?

Re: Getting Started with developing Tic-Tac-Toe

Posted: 20 March 2021, 00:56
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)

Re: Getting Started with developing Tic-Tac-Toe

Posted: 20 March 2021, 03:35
by compte obelète
this would be the fastest game ever! (literally need only 1 minute to finish the game).