Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

A pretty unique concept, feels like it could be some kind of gambling game. One thing I was curious about was the range of values the weights could be. I was wondering if you could always just add weights to the smaller side until you hit perfect balance with no risk of losing? The balance (pun not intended but not avoided) is a little off, but I got a chuckle from those point numbers. Kudos for making this in replit.

thank you 

the values are 

Small scale-50% chance

1-10KG

Large Scale- 50% Chance 

25-100KG

THIS code extract will explain the mass balancing mechanic 

the game does involve a bit of skill, stratergy and luck.

 scale=randint(1,2)

    if scale==1:

      adding=randint(1,10)

      print("You have been given a small scale mass of",adding,"KG")

  

      print("you have",Rejects,"rejct points left")

      print("to reject the mass type 'REJECT' to accept the mass press enter")

      rejected=input()

      if rejected=="REJECT":

        if Rejects>=1:

          Rejects=Rejects-1

        else:

          print("you have spent all of your reject points")

          print("the mass will be automatically accepted")

          sides=int(input("what side do you want to add the mass to? Type 1 for side 1 and 2 for side 2: "))

          if sides==1:

            side1=side1+adding

            Masses_added=Masses_added+1

          elif sides==2:

            side2=side2+adding

            Masses_added=Masses_added+1

          if side1>side2:

            differnce=side1-side2

          elif side2>side1:

            differnce=side2-side1

          elif side1==side2:

            differnce=0

          

      else:

        sides=int(input("what side do you want to add the mass to? Type 1 for side 1 and 2 for side 2: "))

        if sides==1:

          side1=side1+adding

          Masses_added=Masses_added+1

        elif sides==2:

          side2=side2+adding

          Masses_added=Masses_added+1

        if side1>side2:

          differnce=side1-side2

        elif side2>side1:

          differnce=side2-side1

        elif side1==side2:

          differnce=0

    elif scale==2:

      adding=randint(25,100)

      print("You have been given a larg scale mass of",adding,"KG")

  

      print("you have",Rejects,"rejct points left")

      print("to reject the mass type 'REJECT' to accept the mass press enter")

      rejected=input()

      if rejected=="REJECT":

        if Rejects>=1:

          Rejects=Rejects-1

          print("MASS REJECTED")

        else:

          print("you have spent all of your reject points")

          print("the mass will be automatically accepted")

          sides=int(input("what side do you want to add the mass to? Type 1 for side 1 and 2 for side 2: "))

          if sides==1:

            side1=side1+adding

            Masses_added=Masses_added+1

          elif sides==2:

            side2=side2+adding

            Masses_added=Masses_added+1

          if side1>side2:

            differnce=side1-side2

          elif side2>side1:

            differnce=side2-side1

          elif side1==side2:

            differnce=0

  

      else:

        sides=int(input("what side do you want to add the mass to? Type 1 for side 1 and 2 for side 2: "))

        if sides==1:

          side1=side1+adding

          Masses_added=Masses_added+1

        elif sides==2:

          side2=side2+adding

          Masses_added=Masses_added+1

        if side1>side2:

          differnce=side1-side2

        elif side2>side1:

          differnce=side2-side1

        elif side1==side2:

          differnce=0

    if differnce>=100:

      scale_points=0

      print("GAME OVER!")

      print("You have failed to play your scales right and you score 0 scale points!")

      break

you can always remove the game over  statments or experment with Debug Mode