I am creating a small application based on code contracts, is there a way to write a specification, which would kinda work in rock, paper, scissors way? I'd like to make a specification, which would follow something like this:
0- rock
1- paper
2- scissors
so if you get 0
and 1
- 1
wins, if you get 1
and 2
- 2
wins and if you get 0
2
, 0
wins. I would like to write a specification for a method which would specify this case, is it possible to do so?