Search found 4 matches

by Fusionpro
23 July 2020, 15:35
Forum: Developers
Topic: Deck to Array()
Replies: 3
Views: 1733

Re: Deck to Array()

Many thanks Tisaac, Paramesis, Great call-out on the implicit casting to string from "location" to string. Definitely deviated from best-practice on that one - but the deck/card setup for this one is very simple. I noticed I goofed this up too when planning out a different game's deck stru...
by Fusionpro
23 July 2020, 02:46
Forum: Developers
Topic: Deck to Array()
Replies: 3
Views: 1733

Deck to Array()

Greetings, At the end of the game, cards must be scored in the "stRoundEnd" function. Each player has their own hand from $this->cards->getCardsInLocation($player_id); I've written out pseudo-code for how I want to handle the scoring logic, but it relies on the type_arg values of all the c...
by Fusionpro
26 June 2020, 01:11
Forum: Developers
Topic: debugging php
Replies: 16
Views: 4919

Re: debugging php

Not sure if I'm doing something wrong, but in the game.php file I was attempting to debug using: var_dump('variable'); Turns out I was getting errors only when attempting to call var_dump in the setupNewGame() function. In order to check the results I had to move the call to getAllDatas() in order f...
by Fusionpro
22 June 2020, 22:47
Forum: Developers
Topic: debugging php
Replies: 16
Views: 4919

Re: debugging php

I'm also a new developer here, developgame. Some of the better places to start definitely include the page below, and all the associated materials in the right menu bar on that page: https://boardgamearena.com/doc/Troubleshooting Because of the scope of changes being made to all areas of a project, ...

Go to advanced search