petrushkagoogol Posted March 4, 2017 Report Posted March 4, 2017 (edited) Have you ever thought whether the behavior of a bull can be expressed programmatically.......... Here is an attempt to do so (language c#) string animal = textbox1.text; string motion = 'none'; string enemy = 'enabled'; bool threat = true; if (animal == 'cow') motion = 'graze' return; if (animal == 'bull') { while (threat == true) { if (enemy == 'disabled') { enemy = 'enabled'; motion = 'graze' threat = false; return; } else { continue; } } motion = 'graze'; } What does this tell us about - 1. Animal behavior 2. Programmatic representation of the same. ? Edited March 4, 2017 by petrushkagoogol Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.