Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "im going to lose my mind"
-
Ik i probably should have went to stack overflow but you guys seem so much more immediate. I'm building a simple tic tac toe game however whenever i hit a tile the second time the counter disappears i refuse to go on to the winning logic before getting this resolved help!!!!
gameState[tappedCounter] = activePlayer;
if (gameState[tappedCounter] == 2) {
//if tapped counter is unplayed
if (activePlayer == 0) {
((ImageView) view).setImageResource(R.drawable.knight);
activePlayer = 1;
//displays knight
//sets active player to player 2
} else if (activePlayer == 1) {
((ImageView) view).setImageResource(R.drawable.sam);
activePlayer = 0;
//displays sam as player 2 character
//sets active player back to player 1
}4 -
Only dev in the company, couple of on going wordpress projects, just left without notice period. Im going to hell arnt I.
Explanation: I had not yet signed any contracts because the boss “trusted me” i just completed 3 months (standard probation period in other companies) but just got a job offer with triple the salary but recruiters seemed in a rush and i figured i might lose my shot if i told them to wait. Keep in mind in my country that kind of salary is impossible to get for a 21 yr old dev.1