+ 1
Coding question
Player 3 joins game team: How does one keep 30% of gained coins (500) with player 3, pass 70% forward to player 2, make player 2 keep ONLY 30% of those coins & pass the 70% rest to the team captain??
3 Answers
0
In which language exactly? you tagged multiple languages ...
0
I'm not sure which language is the best for this particular code... HTML seems like it would be a very long script but that will work. I'm just learning SQL now and I'm thinking that might be more applicable than PHP but it does seem like a person better suited and PHP than I might be able to handle it. I'm trying to learn how to do different scenarios in the languages that I have studied. I also would like to make a game where team members can help each other with coins. So just looking for some understanding as to what the best language would be and how it would be coded or at least an idea of how to code it so I know what pathway to finish taking. đđ€âŁïžđ€đ„°
0
This idea requires knowledge of basic OOP (the Player class) data collection (for storing Player class instances), and loop (to process the Player instances in collection).
So HTML is obviously out of the question cause HTML supports none of the requirements.
PHP does support the requirements. But the logic is more likely ito be implemented on client's end, whereas PHP runs on server. So I don't think you'd be doing this in PHP either.
SQL is a language strictly used for database management, so I guess it's not gonna do you any favour in the game development direction you're interested in, except on the parts where the game will require use of database for storing data (progress, configuration etc.)
I see you're taking Game development with JS . Now this language is quite suitable for the purpose. So I would encourage you to continue your study đ