Difference between revisions of "Haskell Quiz"

From HaskellWiki
Jump to navigation Jump to search
(Added link for puzzle 61)
 
(39 intermediate revisions by 17 users not shown)
Line 10: Line 10:
   
 
2. [[Haskell Quiz/Secret Santas|Secret Santas]]
 
2. [[Haskell Quiz/Secret Santas|Secret Santas]]
  +
  +
3. [[Haskell Quiz/Geodesic Dome Faces|Geodesic Dome Faces]]
  +
  +
5. [[Haskell Quiz/Sokoban|Sokoban]]
  +
  +
6. [[Haskell Quiz/GEDCOM|GEDCOM Parser]]
   
 
7. [[Haskell Quiz/Countdown|Countdown]]
 
7. [[Haskell Quiz/Countdown|Countdown]]
  +
  +
11. [[Haskell Quiz/TicTacToe|TicTacToe]]
  +
  +
13. [[Haskell Quiz/Cryptograms|Cryptograms]]
  +
  +
15. [[Haskell Quiz/Animal Quiz|Animal Quiz]]
   
 
19. [[Haskell Quiz/Yahtzee|Yahtzee]]
 
19. [[Haskell Quiz/Yahtzee|Yahtzee]]
  +
  +
20. [[Haskell Quiz/Phone Number Words|Phone Number Words]]
   
 
22. [[Haskell Quiz/Roman Numerals|Roman Numerals]]
 
22. [[Haskell Quiz/Roman Numerals|Roman Numerals]]
   
 
25. [[Haskell Quiz/English Numerals|English Numerals]]
 
25. [[Haskell Quiz/English Numerals|English Numerals]]
  +
  +
27. [[Haskell Quiz/Knight's Travails|Knight's Travails]]
   
 
31. [[Haskell Quiz/Amazing Mazes|Amazing Mazes]]
 
31. [[Haskell Quiz/Amazing Mazes|Amazing Mazes]]
   
 
33. [[Haskell Quiz/Tiling Turmoil|Tiling Turmoil]]
 
33. [[Haskell Quiz/Tiling Turmoil|Tiling Turmoil]]
  +
  +
37. [[Haskell Quiz/Inference Engine|Inference Engine]]
   
 
39. [[Haskell Quiz/Sampling|Sampling]]
 
39. [[Haskell Quiz/Sampling|Sampling]]
   
 
43. [[Haskell Quiz/Sodoku Solver|Sodoku Solver]]
 
43. [[Haskell Quiz/Sodoku Solver|Sodoku Solver]]
  +
  +
54. [[Haskell Quiz/Index and Query|Text Index and Query]]
   
 
57. [[Haskell Quiz/Weird Numbers|Weird Numbers]]
 
57. [[Haskell Quiz/Weird Numbers|Weird Numbers]]
   
 
60. [[Haskell Quiz/Numeric Maze|Numeric Maze]]
 
60. [[Haskell Quiz/Numeric Maze|Numeric Maze]]
  +
  +
61. [[Haskell Quiz/Dice Roller|Dice Roller]]
   
 
63. [[Haskell Quiz/Grid Folding|Grid Folding]]
 
63. [[Haskell Quiz/Grid Folding|Grid Folding]]
  +
  +
65. [[Haskell Quiz/Splitting the Loot|Splitting the Loot]]
  +
  +
70. [[Haskell Quiz/Constraint Processing|Constraint Processing]]
   
 
76. [[Haskell Quiz/Text Munger|Text Munger]]
 
76. [[Haskell Quiz/Text Munger|Text Munger]]
  +
  +
77. [[Haskell Quiz/Cat2Rafb|cat2rafb]]
   
 
84. [[Haskell Quiz/PP Pascal|PP Pascal]]
 
84. [[Haskell Quiz/PP Pascal|PP Pascal]]
  +
  +
88. [[Haskell Quiz/Chip Eight|Chip Eight]]
  +
  +
92. [[Haskell Quiz/DayRange|DayRange]]
   
 
93. [[Haskell Quiz/Happy Numbers|Happy Numbers]]
 
93. [[Haskell Quiz/Happy Numbers|Happy Numbers]]
Line 47: Line 79:
 
100. [[Haskell Quiz/Bytecode Compiler|Bytecode Compiler]]
 
100. [[Haskell Quiz/Bytecode Compiler|Bytecode Compiler]]
   
  +
106. [[Haskell Quiz/Chess960|Chess960]]
==Possibly fun ones not yet done in haskell==
 
   
  +
107. [[Haskell Quiz/Word Search|Word Search]]
3. Geodesic Dome Faces http://www.rubyquiz.com/quiz3.html
 
   
  +
108. [[Haskell Quiz/Word Blender|Word Blender]]
11. Learning Tic-Tac-Toe http://www.rubyquiz.com/quiz11.html
 
   
  +
114. [[Haskell Quiz/Housie|Housie]]
25. English Numerals http://www.rubyquiz.com/quiz25.html
 
   
  +
117. [[Haskell Quiz/SimFrost|SimFrost]]
27. Knight's Trevails http://www.rubyquiz.com/quiz27.html
 
   
  +
121. [[Haskell Quiz/Morse Code|Morse Code]]
37. Inference Engine http://www.rubyquiz.com/quiz37.html
 
   
  +
122. [[Haskell Quiz/Credit Cards|Checking Credit Cards]]
48. Math Captcha http://www.rubyquiz.com/quiz48.html
 
   
  +
126. [[Haskell Quiz/FizzBuzz|FizzBuzz]]
49. Text Image http://www.rubyquiz.com/quiz50.html (Not sure how image loading will work)
 
   
  +
128. [[Haskell Quiz/Verbal Arithmetic|Verbal Arithmetic]]
65. Splitting the Loot http://www.rubyquiz.com/quiz65.html
 
   
  +
131. [[Haskell Quiz/Maximum Sub-Array|Maximum Sub-Array]]
70. Constraint Processing http://www.rubyquiz.com/quiz70.html
 
   
  +
138. [[Haskell Quiz/Count and Say|Count and Say]]
85. C-Style Ints http://www.rubyquiz.com/quiz85.html
 
   
  +
139. [[Haskell Quiz/IP to Country|IP to Country]]
87. Negative Sleep http://www.rubyquiz.com/quiz87.html (As a Monad!!!)
 
   
  +
141. [[Haskell Quiz/Probable Iterations|Probable Iterations]]
88. Chip-8 http://www.rubyquiz.com/quiz88.html
 
   
  +
147. [[Haskell Quiz/Goedel|Goedel]]
92. DayRange http://www.rubyquiz.com/quiz92.html
 
  +
  +
156. [[Haskell Quiz/Internal Rate of Return|Internal Rate of Return]]
  +
 
==Possibly fun ones not yet done in haskell==
  +
 
48. Math Captcha http://www.rubyquiz.com/quiz48.html
  +
 
49. Text Image http://www.rubyquiz.com/quiz50.html (Not sure how image loading will work)
  +
 
85. C-Style Ints http://www.rubyquiz.com/quiz85.html
  +
 
87. Negative Sleep http://www.rubyquiz.com/quiz87.html (As a Monad!!!)
   
 
Many weren't included because of either clumsy ASCII output, or requiring a dictionary. Perhaps a dictionary module could be created and those problems attacked in a unified fashion.
 
Many weren't included because of either clumsy ASCII output, or requiring a dictionary. Perhaps a dictionary module could be created and those problems attacked in a unified fashion.
   
 
[[Category:Code]]
 
[[Category:Code]]
  +
[[Category:Haskell Quiz|*]]

Latest revision as of 14:34, 26 October 2012

A collection of solutions to the Ruby quiz puzzles in simple, elegant Haskell.

As you solve the puzzles, please contribute your code, and create a page for the puzzle entries. When creating a new page for your source, be sure to categorise it as code, with a [ [ Category:Code ] ] tag.

The Puzzles

1. The Solitaire Cipher

2. Secret Santas

3. Geodesic Dome Faces

5. Sokoban

6. GEDCOM Parser

7. Countdown

11. TicTacToe

13. Cryptograms

15. Animal Quiz

19. Yahtzee

20. Phone Number Words

22. Roman Numerals

25. English Numerals

27. Knight's Travails

31. Amazing Mazes

33. Tiling Turmoil

37. Inference Engine

39. Sampling

43. Sodoku Solver

54. Text Index and Query

57. Weird Numbers

60. Numeric Maze

61. Dice Roller

63. Grid Folding

65. Splitting the Loot

70. Constraint Processing

76. Text Munger

77. cat2rafb

84. PP Pascal

88. Chip Eight

92. DayRange

93. Happy Numbers

97. Posix Pangrams

98. A*

99. Fuzzy Time

100. Bytecode Compiler

106. Chess960

107. Word Search

108. Word Blender

114. Housie

117. SimFrost

121. Morse Code

122. Checking Credit Cards

126. FizzBuzz

128. Verbal Arithmetic

131. Maximum Sub-Array

138. Count and Say

139. IP to Country

141. Probable Iterations

147. Goedel

156. Internal Rate of Return

Possibly fun ones not yet done in haskell

48. Math Captcha http://www.rubyquiz.com/quiz48.html

49. Text Image http://www.rubyquiz.com/quiz50.html (Not sure how image loading will work)

85. C-Style Ints http://www.rubyquiz.com/quiz85.html

87. Negative Sleep http://www.rubyquiz.com/quiz87.html (As a Monad!!!)

Many weren't included because of either clumsy ASCII output, or requiring a dictionary. Perhaps a dictionary module could be created and those problems attacked in a unified fashion.