160 likes | 277 Views
Code Shoot Out. Tulsa .Net Users Group. Lessons Learned. Please read all emails. Puzzles do change or input is corrected/clarified according to feedback. We need better infrastructure to judge programs. All execution timing will be done outside of program. All results need to be uniform.
E N D
Code Shoot Out Tulsa .Net Users Group
Lessons Learned • Please read all emails. Puzzles do change or input is corrected/clarified according to feedback. • We need better infrastructure to judge programs. • All execution timing will be done outside of program. • All results need to be uniform.
Lessons Learned • We are creating a program to call your program. It will time your program’s execution time. • Gone are text files. Two xml files will be needed. • One for input and one for output of your results. • Your results file should be named Puzzle2Results_YourName#1.xml • e.g. Puzzle2Results_LarryConklin#1.xml
Lessons Learned • Winners must come up and do a show and tell on their code. • Winner must make their code available to Users group. Let other people learn from your success.
Puzzle Two Tulsa .Net Users Group
Common Rules • Use visual studio 2008, 2010, or 2012. • No third part libraries can be used. I.e STL, Boost, dtSearch, etc. • Must be able to compile code on judgment night. • Winner must be able to explain code. • Must be a VB.Net, C#, or C++ .Net program. All code must be managed code that runs on the CLR. • Winner must be present to win.
Common Rules • Winning program must use the standardize xml output. • Programming teams are allowed. • You can enter more than one program. • Remember this is your project do not use your employer’s time to work on this. Be nice.
Objective Visit all 48 state capitals. Visit each state only once. Find the shortest path. Start in Maine. End in the State of ??????
Rules for this Puzzle only • You can use Silverlight extensions. • You can use APIto Bing map controls. • You can’t use Google or anyone else’s third party map controls. Let’s be nice to Microsoft who is a sponsor.
XML Input Sample <?xml version="1.0" encoding="utf-8"?> <Puzzle> <PuzzleDetails> <PuzzleName>Shortest Path To State Capitals</PuzzleName> <PuzzleNumber>2</PuzzleNumber> <PuzzleXMLVersion>1.0</PuzzleXMLVersion> <StartState>Maine</StartState> </PuzzleDetails> <States> <State> <Name>Alabama</Name> <Capital>Montgomery</Capital> <Latitude>32.361538</Latitude> <Longitude>-86.279118</Longitude> <BoarderingStates> <BorderingState>Mississippi</BorderingState> <BorderingState>Tennessee</BorderingState> <BorderingState>Georgia</BorderingState> <BorderingState>Florida</BorderingState> </BoarderingStates> </State>
XML Output Sample <ParticipantInformation> <ParticipantName>Your Name Here</ParticipantName> <Category>Advance</Category> </ParticipantInformation> <ProgramInformation> <ProgramName>IWin.exe</ProgramName> <VisualStudioVersion>2008</VisualStudioVersion> <DotNetLanuage>C#</DotNetLanuage> </ProgramInformation> <Path> <Path> <Link> <LinkNumber>1</LinkNumber> <State>Main</State> <DestinationState>Second State Name</DestinationState> <MileageFromPreviousLin/> </Link> <Link> <LinkNumber>2</LinkNumber> <State>Second State</State> <DestinationState>Third State Name</DestinationState> <MileageFromPreviousLinK>12345</MileageFromPreviousLink> </Link> <TotalMileage>9999999</TotalMileage> <NumberOfStatesVisted>48</NumberOfStatesVisted> </Path>
Gotcha’s • Only 48 continental states need to be visited. (exclude Alaska, Hawaii, and District of Columbia). • Can only visit any state once. • Judging is based on distance between links, correct links, time of execution. • You start in Maine.
Questions • What does distance between links need to be measured in? • Miles, two decimals At what level of precision (how many decimals?) • What is ”distance between links” (straight line, highways, highways, excluding toll roads, etc.)? • This depends on how much you want to win.
Questions • One of the conclusions I drew, was that there was only one RIGHT answer. That could be mentioned near the end. • Do I have to go through a “BorderingState”? I assume so, but you didn’t say it in the specs . • . • Loot – you didn’t mention what the prizes were. • We need to talk about this question. • You didn’t mention the different categories (advanced, beginner, etc.). That could go on the common rules slide. Yes, I did.
Answer An interesting map problem. http://www.cs.cmu.edu/~bryant/boolean/