hi guys, i am asked to do a game where the player plays against computer where each one has to put into the pursue a piece of coin, it cas be 5cent, 10, 25 or a dollar, the one that puts the biggest piece can take the change for it from the purse minus one, example if i put a piece of 5 cent and there are already in the purse 5 ieces of one cent, i will take four of them, the one that grows empty without any piece will loose, i am asked to do this in java without usung classes, so not using the object apporach, is there any existing code for similar games that can help me ?
triceratops 0 Newbie Poster
jon.kiparsky 326 Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.