This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I want to develop cricket game which will simulate a match ball by ball depending on player stats (bowler's skill/experience, batsman's skill/exp, fielding/wicketkeeping stats, so on...) and other related variables. Plus user can provide inputs during the match & the result should alter according to the user inputs. The match is purely text based no graphics. I am to develop this in java.
For this I am not sure what do I need to learn to write this kind of logic. I read somewhere that Finite State Machine or AI might come in handy. I just need a little guidance. Can anyone help Thanks
1) turn off your computer
2) get some paper, pencils, and erasers
3) draw pictures. sketch things out. figure out how YOU would do it if all you had were the above tools (and possible some dice to generate random numbers).
When you can do the above, and explain it to a ten year old child, THEN start thinking about how to do it in java.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors