Advertisement
Guest User

Untitled

a guest
Mar 1st, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.30 KB | None | 0 0
  1. type plate = int * int * int ;;
  2. type game_statu =
  3.    Non_term of int
  4.   |P1 of int
  5.   |P2 of int
  6.   |Match_nul of int;;
  7.  
  8. let init a:plate =(0,a,a);;
  9.  
  10. let display a:plate =
  11.   let (b,c,d)=
  12.   match a with
  13.      (-1,_,_) -> ("x"," "," ")
  14.     |(_,_,_) -> (" ","X","X")
  15. in print_string "b^c^d";;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement