Presentation is loading. Please wait.

Presentation is loading. Please wait.

E xpressing Z ombies as P rogrammable I ndividuals Abhinav Sharma Wayne Shu Miles Ulrich.

Similar presentations


Presentation on theme: "E xpressing Z ombies as P rogrammable I ndividuals Abhinav Sharma Wayne Shu Miles Ulrich."— Presentation transcript:

1 E xpressing Z ombies as P rogrammable I ndividuals Abhinav Sharma Wayne Shu Miles Ulrich

2 What is EZ as PI? An imperative, interpreted language for zombie apocalypse simulation Educational and fun language for novice programmers Emphasis on simplicity and flexibility

3 Motivation Zombies are cool!! Simulate the spread of an epidemic Let’s see how Humans can save themselves…. Will they??

4 Sample Output Source Code:

5 Elements of Language Basic Types #number @location ^direction ?boolean !string Dynamic Attributes (Methods) ##dynamicnum ^^dynamicdirection … Human/Zombie #speed #power @start ^strategy !name

6 Basic Program Structure Definitions - Set constants - Define dynamic attributes Creation of Elements -Create a world -Populate world with humans & zombies Simulation Phase - dynamic variations - per clock cycle Post processing

7 Sample Program ^^cautious if imHuman return awayFrom nearestZombie return toward nearestHuman end ##slowOverTime if time < 100 return 100-time return 1 end create world 20:10 create 20 zombies with speed slowOverTime strategy random end create 4 humans with strategy cautious end run 100 display graphical end print “There are {humanCount} humans still alive”

8 Translator Architecture LexerParser Syntax tree Walker Interpreter EZ as PI Library Other supporting functions Output JVM.ez Source File

9 Tools and Environment Development Tools: Eclipse 3.5 Java 1.6 SDK, Swing ANTLR 3.2 Management Tools: Google Code – Version control MS office Operating System: Windows Linux

10 Testing Black Box White Box Unit testing System testing

11 Lessons Learnt How to manage time and resources (limited, less members) Incremental approach towards problem as a whole Modular is better Choose the right tools!

12 Thank You


Download ppt "E xpressing Z ombies as P rogrammable I ndividuals Abhinav Sharma Wayne Shu Miles Ulrich."

Similar presentations


Ads by Google