This site requires JavaScript, please enable it in your browser!
Greenfoot back
CP7
CP7 wrote ...

2019/6/19

Card not removing from hand

1
2
3
danpost danpost

2019/6/19

#
CP7 wrote...
<< Error Trace Omitted >>
I see where the error is being thrown; but, I cannot (right off) find where the card which should be in the world is being removed.
CP7 CP7

2019/6/19

#
I even added a break if i was greater than playerOneHand.size(), which i thought would fix it, but it didn'tt :/
CP7 CP7

2019/6/19

#
danpost wrote...
CP7 wrote...
<< Error Trace Omitted >>
I see where the error is being thrown; but, I cannot (right off) find where the card which should be in the world is being removed.
So i did some testing and printed out "i". I found that when there were 3 cards left, it would print "3" at the end, which doesn't exist.
danpost danpost

2019/6/20

#
CP7 wrote...
I even added a break if i was greater than playerOneHand.size(), which i thought would fix it, but it didn'tt :/
I saw that. However, the current issue is that one of the cards on the list is not in the world (I would think that all the cards in the list would be in the world). It is not an indexing issue.
CP7 CP7

2019/6/20

#
danpost wrote...
CP7 wrote...
I even added a break if i was greater than playerOneHand.size(), which i thought would fix it, but it didn'tt :/
I saw that. However, the current issue is that one of the cards on the list is not in the world (I would think that all the cards in the list would be in the world). It is not an indexing issue.
Any idea what I could do to fix it?
CP7 CP7

2019/6/20

#
Nvm, i found the error. Thank you for all your help on this project danpost!
You need to login to post a reply.
1
2
3