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

Report as inappropriate.

doctorcanada
doctorcanada presents ...

2 days ago

Little Crab FSM Enhanced

This is basically the same "little crab" game we all know and love(?), but here the behavior of the Lobster is governed by a finite state machine (FSM) that uses a Markov chain to choose whether the Lobster will actively CHASE the crab, PATROL back and forth in a straight line, or WANDER around randomly. Lobsters are programmed to "dwell" in their current state for a certain amount of animation frames (act cycles) before they are permitted to change state, which prevents "jitter" that might result from changing state too rapidly

71 views / 71 in the last 7 days

Tags: None

Your browser does not support the canvas tag.

No Comments

Want to leave a comment? You must first log in, and be a member for more than a week.

Who likes this?

No votes yet.