A three-judge panel of the N.C. Court of Appeals has reversed a lower court and ruled against operators of sweepstakes kiosks.

The complicated case generated separate opinions from all three judges. They agreed that the challenged kiosks violate North Carolina’s ban on video sweepstakes machines. But the judges disagreed on the reason for the violation.

A key issue for the judges involved the role of skill or chance in determining whether people using the kiosks could win a prize.

It’s the latest ruling in a legal dispute that has pitted Gift Surplus against state government since 2013.