Skip to main content
6 of 7
added 120 characters in body
digEmAll
  • 5k
  • 14
  • 22

R, 41 bytes

function(v)rank(c(6,0,5,1:4*0,1:3)[v])[1]

Try it online!

The function returns 2 for 'greater than', 1 for 'less than', 1.5 for 'equal'

Explanation :

      c(6,0,5,1:4*0,1:3)[v]          # extract the score of each card in v;
                                     # cards in v are used as indexes in the cards rank 
                                     # vector, which is based on briscola scores vector 
                                     # c(11,0,10,0,0,0,0,2,3,4) but divided by 2 and rounded 
                                     # to integer preserving the original order

rank(                      )[1]      # rank returns : c(1,  2)   if v[1] < v[2]
                                     #                c(2,  1)   if v[1] > v[2]
                                     #                c(1.5,1.5) if v[1] == v[2]
                                     # and we select the first value
digEmAll
  • 5k
  • 14
  • 22