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
| #Persistent | |
| #SingleInstance, Force | |
| SetTitleMatchMode, 2 | |
| SetWorkingDir, %A_ScriptDir% | |
| ;Ask player to Enter Mode of play Easy, Medium, Hard | |
| InputBox, Mode, Daily Programmer Challenge #189, Please enter [Easy] [Intermediate] or [Hard] , 640, 480 | |
| If (ErrorLevel = 1) ;If Cancel or Close Exit | |
| ExitApp | |
| If !(Mode == "Easy" Or Mode == "Intermediate" or Mode == "Hard") { ;If not Easy, Intermediate, or Hard Reload! |
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
| #SingleInstance Force | |
| #Persistent | |
| ; I changed the names a bit for testing purposes | |
| TheNameGame := new NameGame("Arnold!") | |
| MsgBox % TheNameGame.get_MyMethod() | |
| TheNameGame := new NameGame("Albert!") | |
| MsgBox % TheNameGame.get_MyMethod() | |
| TheNameGame := new NameGame("Melvin!") | |
| MsgBox % TheNameGame.get_MyMethod() |
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
| a = | |
| ( Join`s | |
| because cause | |
| hello below | |
| hit miss | |
| rekt pwn | |
| combo jumbo | |
| critical optical | |
| isoenzyme apoenzyme | |
| tribesman brainstem |
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
| If validate_Isbn("156881111X") { | |
| MsgBox % "156881111X is a Valid ISBN Number!" | |
| } | |
| If validate_Isbn("0-7475-3269-9") { | |
| MsgBox % "0-7475-3269-9 is a Valid ISBN Number!" | |
| } | |
| x := generate_isbn() |
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
| Nput := "A A T G C C T A T G G C" | |
| for each, Char in StrSplit(Nput, a_space, "`r") | |
| { | |
| Output .= Swap(Char) . " " | |
| } | |
| MsgBox % Nput . "`n" . Output | |
| Swap(x) |
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
| /* #238 [Intermediate] Fallout Hacking Game | |
| Coded by errorseven @ 10312015 | |
| */ | |
| SetBatchLines -1 | |
| ;+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- | |
| ; VARIABLES AND OBJECTS | |
| ;+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- |
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
| MsgBox % boxit("EVERYWHERE IS WITHIN WALKING DISTANCE IF YOU HAVE THE TIME") | |
| MsgBox % boxit("IT IS RAINING CATS AND DOGS OUT THERE") | |
| boxit(z) { | |
| StringReplace, z, z, %A_SPACE%, , All ;remove spaces | |
| r := box(z), i := 1, d := "1, 1", x := [] | |
| loop % r { | |
| count++ | |
| if !mod(count, 2) { | |
| y := SubStr(z, i,r) |
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
| MyList := New ToDo() | |
| MyList.Set("Go Shopping") | |
| MyList.Set("Go to bank") | |
| MyList.Display() | |
| MyList.Set("Buy Fallout 4") | |
| MyList.Remove("Go to bank") | |
| MyList.Display() | |
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
| ChallengeInput = | |
| ( | |
| Eye of Newt, and Toe of Frog, Wool of Bat, and Tongue of Dog. | |
| Adder's fork, and Blind-worm's sting, Lizard's leg, and Howlet's wing. | |
| For a charm of powerful trouble, like a hell-broth boil and bubble. | |
| ) | |
| For each, Line in StrSplit(ChallengeInput, "`n", "`r") { | |
| For each, Word in StrSplit(Line, " ", "`r") { | |
| AlphaWord := |
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
| ChallengeInput = | |
| ( | |
| CAN NINCOMPOOP PANTS SCRIMSHAW WASTELAND DIRK KOMBAT TEMP PLUNGE ESTER REGRET TOMBOY | |
| ) | |
| table := [] | |
| Loop % StrLen(ChallengeInput) { | |
| row := A_Index | |
| Loop % StrLen(ChallengeInput) { |
OlderNewer