I'm making a game for a project due this Tuesday. You're in a dungeon with rows and columns, and for each coordinate there is a cell and there are 3 trap cells that you instantly die from if you walk into them. Also, you die if you hit 3 walls.
For debugging purposes, I worked out a grid printing system, and various things that tell you where the player is, cell #, cell coordinates, player coordinates, etc, so I know exactly where everything is. In the final version, there will be no grid and none of that.
Everything ATM, works how I want it to, except for ONE thing. If a trap or the player gets placed in Column 0, Row 4 its cell number gets increased by anywhere from 1 to 3, sharing a cell number with another one of the cells, and I have no idea why this happens. I've tried putting in countermeasures for this, but they don't seem to take effect.
I used to have a working system where it displayed on the grid the character's position every time I moved and all of the traps' positions, but now it only displays either if it's in the glitched cell.
Here is the entire program, 5 files zipped up in a .rar:
The problem files are DungeonMaze.java, Player.java and Cells.java. I apologize if it's messy. Also, ignore the various profanities placed about, it's from anger. They're not gonna be there when I turn this in. :P
I'm in desperate need of help, guys. I'm VERY beginner with Java (since our teacher "teaches" us jack squat) so there may be some very noobish mistakes. Anything is appreciated! Thank you!