CompSci 44.1Computer Science 4:Java for Video GamesDietolf (Dee) RammD226 [email protected]/education/courses/spring06/cps004/Robert DuvallD228 [email protected] 44.2Introductionÿ Administrative materialÿ Introduction thinking about gamesÿ Webpage developmentÿ First assignment (due Tuesday)CompSci 44.3Administrative Materialÿ Course Webpageÿ What you will learn?ÿ Is this course right for you?ÿ Structure of the courseCompSci 44.4What you will learn in this courseÿ Two primary goals are to teach1. Basic programming2. Basic computer science conceptsÿ To explore these topics we’ll study Video game design Algorithms used in video gamesCompSci 44.5Whatyouwon’tlearninthiscourseÿ The same amount and type of programming as in CompSci 6 for majorsÿ Enough about Java or video games to market your own gamesÿ Programming concepts that will only be useful using our video games packageCompSci 44.6Who should take this course ?ÿ Students with very little or no background in computer programmingÿ Students who want to learn something about computer programming and might want to take additional coursesÿ Prospective majors who feel they are not ready for CompSci 6ÿ Students who want to learn something new, interesting, and fun, that might actually be usefulCompSci 44.7Who shouldnottake this courseÿ Computer Science Majors who already know how to program (in any language)ÿ Computer Programmersÿ Students afraid of technology who want to get QS credit with as little pain a possible and who could never imagine taking another computer course (take CompSci 1 instead: it’s a survey course with more general knowledge)CompSci 44.8Structure of the Courseÿ Homeworks 50% Weekly Typically done in pairs Build toward projectÿ Tests 30% 2 Each 15% (no final: final period required for project presentations)ÿ Project 20% Presentation is your final exam Done in teams of 2 or 3CompSci 44.9Web Page Developmentÿ Where files should be placedÿ How to create and use directories (folders)ÿ Using Windows Notepad Can use almost any editor Could use the one in EclipseCompSci 44.10Webpage Placementÿ Your webpage is located in P:\public_htmlÿ Your individual course webpage will be located in P:\public_html\cps4ÿ Your personal webpage is viewable fromhttp://www.duke.edu/~yourloginÿ Your course webpage is viewable fromhttp://www.duke.edu/~yourlogin/cps4CompSci 44.11Creating Directoriesÿ Double Click on My Computer (ICC229)ÿ Double Click on P drive (could also be indicated by your login)ÿ Double Click on public_htmlÿ File->New->Folderÿ Type in cps4 and EnterCompSci 44.12Using Notepadÿ Find and open up Notepadÿ Type in<html><head> </head><body><h1> Hello! </h1></body></html>ÿ File->Save asÿ Select P:\public_htmlÿ Select cps4ÿ Save as Hello.htmlCompSci 44.13Netscape/Mozilla Composerÿ In Netscape/IE/Firefox, go tohttp://www.duke.edu/~yourlogin/cps4/Hello.htmlÿ Rename Hello.html to index.html and go tohttp://www.duke.edu/~yourlogin/cps4/ÿ index.html is searched for automatically if no file name is givenÿ Experiment on your own time with this web page to make more webpages and add linksÿ (Refer to resources on class web page for help with html)CompSci 44.14First Assignmentÿ Visit the course website and complete the first assignment due on TuesdayCompSci 44.15Today’s In-Class Exerciseÿ Understanding and Mastering the game of Nim See handoutÿ One heap game Develop a strategyÿ Two heap game Extend your ideasÿ Generalize to additional heaps Extend your
View Full Document