Home » questions » Help writing pseudocode?
Help writing pseudocode?
This is a class exercise and I did try it, but my competence in programming is shocking . I did a previous exercise where I had to write an algorithm for a game and now I have to turn it into pseudocode using the keywords from the six basic computer operations (eg. display, initialize, dowhile)
Would anyone please help me?
This is the algorithm that I wrote (it is probally quite bad, though it was the best that I could do)
Move fish close shark 10 pixels away. Fish shows alarm in face. Shark tries to attack fish. User tries to move fish away. If fish moves more than 20 pixels away from shark user earns 1 point. User wins when score 10 points. Game ends if shark eats fish.

Answers
programinglogic
On 2006-07-29 01:14:49
sara85blue
On 2006-07-29 01:14:32