<div>Hi All,</div>
<div>          In the game of nim I want to make a move such as take x from pile A. This will then be subtracted from the starting list.Is this correct in as much as I want to have a move Take 3 from pile  A: input would be A3 I need it to return a list as I wish to take this result and use zipwith (-) [starting list][result]. How do I use the result, do I store in a variable?</div>

<div> </div>
<div>typeOfMove :: (a,b) -&gt; [Int]<br>typeOfMove ax<br>  |ax = [x,0,0]<br>  |bx = [0,x,0]<br>  |cx = [0,0,x]</div>
<div>  </div>
<div>John        </div>