-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMain.hs
More file actions
44 lines (36 loc) · 695 Bytes
/
Main.hs
File metadata and controls
44 lines (36 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
----------
-- MAIN --
----------
module Main where
import Game
import Graphics.UI.WX
import GUI
import Ataxx
import Bamp
import Halma
import Hex
import Kram
import Nim
import Reversi
import TicTacToe
import Zenix
import System.Directory (setCurrentDirectory)
import Paths_GeBoP (getDataDir)
games :: [GeneralGame]
games = [ Game ataxx
, Game bamp
, Game halma
, Game hex
, Game kram
, Game nim
, Game reversi
, Game tictactoe
, Game zenix
]
main :: IO ()
main =
getDataDir >>=
setCurrentDirectory >>
start (gui games)
exit :: IO ()
exit = putStrLn "When will you learn you have to use :q?"