HARRISBURG, Pa. (AP) – Pennsylvania’s casinos have lost a bid to shut down online lottery games that they say are too much like casino gambling, just days before the state’s first casinos launch their own online gambling portals.

Friday’s decision in Commonwealth Court is a victory for the state lottery, although the casino owners’ 9-month-old lawsuit will continue.

READ MORE: WATCH: Girl Challenges Pittsburgh Police Officer And Former Pitt Football Player To Race

Lottery officials say the games are in accordance with the 2017 state law that authorized them, but the casinos argue that some online lottery games violate it because they simulate slot machines and casino-style gambling.

READ MORE: Pittsburgh Weather: Warm Saturday, Chances Of Thunderstorms

On Monday, state regulators will allow Parx Casino and Penn Nation’s Hollywood Casino to launch their online gambling portals to patrons statewide as part of a three-day test.

Nevada, New Jersey and Delaware are the only other states that allow online casino gambling.

MORE NEWS: Police Safely Locate Richard Gordon, Previously Missing 73-Year-Old Man

(Copyright 2019 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)