This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Originally from: http://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/ | |
| #But will be heavily modified | |
| IDIR =../include | |
| CXX=g++ | |
| CXXFLAGS= | |
| CPPFLAGS=-Wall -I$(IDIR) | |
| #ODIR=obj | |
| LDIR =../lib | |
| LDFLAGS=-L$(LDIR) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ' {$STAMP BS2} | |
| ' {$PBASIC 2.5} | |
| 'This is the final program for Team Dutchmen exploring engineering soccer playing robot | |
| 'Programmed by Julian Jocque, Union College 10/2011 | |
| 'Basic idea is turn to the right pedestal, walk up, bump and close, up | |
| 'turn right, bump wall, back up, turn left, bump wall, back up, turn left | |
| 'forward to the goal, turn right forward bump then open | |
| Counter VAR Word |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sortedArray.each do |sortedWord| | |
| comparison = sortedWord.length <=> word.length | |
| if (comparison == -1 and sortedWord.next == nil) | |
| sortedArray.insert(wordCount+1,word) | |
| elsif (comparison == -1 and sortedWord.next != nil) | |
| next | |
| else | |
| sortedArray.insert(wordCount,word) | |
| end | |
| wordCount++ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| question "Who was the president?" | |
| right "Your face" | |
| wrong "My face" | |
| wrong "Lincoln" | |
| question "Where did he go?" | |
| wrong "Canada" | |
| wrong "Isreal" | |
| right "Flug Bug" | |
| wrong "To the right, now y'all" |