Author Topic: Pricing game lineup randomizer  (Read 3182 times)

0 Members and 1 Guest are viewing this topic.

Offline RCPlanes59

  • Double Showcase Winner
  • ******
  • Posts: 1205
    • YouTube
Pricing game lineup randomizer
« on: November 22, 2017, 09:04:43 PM »
Long ago I attempted to make a TPIR game in Java similar to Big Jon's game, trading off the obvious cosmetic differences for some new features. Despite making it decently far (~10 games), I realized the gargantuan task ahead of me and dropped it. Until earlier today I had forgotten that I had written the code that would have selected the lineup for the game, and I realized that it might have some moderate value of interest.



This program randomly selects six games based on the parameters of an average show: one car game per half, one cash game, one grocery game, one small prize game. It also ensures that the lineup is within 27 and 28.5 minutes. I used the Season 45 timings and guessed on Gridlock.

DOWNLOADS:
WINDOWS VERSION: https://www.mediafire.com/file/4gj7lm8gepx9tbt/TPIR%20Lineup%20Windows.rar (run the .bat file)
MAC VERSION: https://www.mediafire.com/file/thu5mr61abhrhi6/TPIR%20Lineup%20Mac.rar (run the .COMMAND file)

You may need the most recent version of Java and Java Development Kit to run this.

Obviously I'm never going to finish the "full game", so I can post the code for this program or for any of my games if there is any interest.
Season 8 (2011-12) CSS 3rd Place

Offline htmlcc92

  • Double Showcase Winner
  • ******
  • Posts: 1272
  • "Mrs. Peacock was a man?!"
Re: Pricing game lineup randomizer
« Reply #1 on: November 22, 2017, 09:18:35 PM »
Nice! I am studying computer science, my start was in C++, but since moving colleges last year they're basically Java-based teaching. I made a very rudimentary Clock Game without the clock in my Java class last year, wasn't very advanced. Previously I tried to do a pricing game in C# with a GUI, though never got far. Maybe I can try to get back into it, with Christmas break coming up in not too long.
There is a fifth dimension beyond that which is known to man. It is a dimension as vast as space and as timeless as infinity. It is the middle ground between light and shadow, between science and superstition, and it lies between the pit of man's fears and the summit of his knowledge. This is the dimension of imagination. It is an area which we call the Twilight Zone.

Offline RCPlanes59

  • Double Showcase Winner
  • ******
  • Posts: 1205
    • YouTube
Re: Pricing game lineup randomizer
« Reply #2 on: November 22, 2017, 10:09:54 PM »
Nice! I am studying computer science, my start was in C++, but since moving colleges last year they're basically Java-based teaching. I made a very rudimentary Clock Game without the clock in my Java class last year, wasn't very advanced. Previously I tried to do a pricing game in C# with a GUI, though never got far. Maybe I can try to get back into it, with Christmas break coming up in not too long.
Clock Game was one of the games I successfully programmed if you'd like to check your work.
Season 8 (2011-12) CSS 3rd Place

Offline htmlcc92

  • Double Showcase Winner
  • ******
  • Posts: 1272
  • "Mrs. Peacock was a man?!"
Re: Pricing game lineup randomizer
« Reply #3 on: November 22, 2017, 10:26:30 PM »
Sounds good, I'll have to check it out, thank you!
There is a fifth dimension beyond that which is known to man. It is a dimension as vast as space and as timeless as infinity. It is the middle ground between light and shadow, between science and superstition, and it lies between the pit of man's fears and the summit of his knowledge. This is the dimension of imagination. It is an area which we call the Twilight Zone.

Offline TPIRfan#9821

  • 4/23/2020
  • TPiR Alumnus
  • *
  • Posts: 880
  • ghost in the more-than-shell bedroom
Re: Pricing game lineup randomizer
« Reply #4 on: November 22, 2017, 11:19:10 PM »
Sweet! Now I have a program to randomly guess a FPG submission  :P

Honestly, part of me wants to learn how to do this. The other part of me wants to just do my work normally and not be distracted. Nice creation.
"If any show, forget sports, Price is Right, [the audience is] the star of the show. Somebody... coming on down and losing their minds, and ... crying, that's the show. The show isn't me, the show isn't necessarily [a] can of soup, how much that is, it's watching people go bananas, and there's going to be some of that missing."

-Drew Carey, interview with The Athletic, September 16, 2020

"I honestly thought the doubler was gone, but 9821 going $0 makes sense"

-thatvhstapeguy, Discord message, April 5, 2023

Episodes attended: 4/25/19 (8674K), 4/23/20 (9124K), 9/27/23 (303L), 2/5/24 (481L), 2/15/24 (494L), 3/14/24 (544L), 3/18/24 (531L), 10/11-16/24 (725-733L), 2/26/25 (913L), 3/7/25 (925L), 4/7-8/26 (1372-3L), 10/27/26 (1552L)

Offline silverice878

  • Double Showcase Winner
  • ******
  • Posts: 1102
  • Broadcasting in digital.
Re: Pricing game lineup randomizer
« Reply #5 on: November 27, 2017, 04:18:22 PM »
Is there any way you could make a version of this for mobile? Great work!
R.I.P Gerry Rafferty.  R.I.P Doc Watson. R.I.P Chris Economaki. R.I.P Jason Leffler. R.I.P J.J Cale. R.I.P Tim Wilson. R.I.P John Pinette. R.I.P Pete Seeger. R.I.P. Marc Breslow. R.I.P David Bowie. R.I.P. Gregg Allman. R.I.P. Don Williams. R.I.P. Monty Hall. R.I.P. Tom Petty. R.I.P Robert Yates. R.I.P. Cedell Davis. R.I.P. Bud Moore. R.I.P. Hugh Masekela. R.I.P. Norette Brinegar. R.I.P. Bill Daily. R.I.P. Junior Johnson. R.I.P. Neil Peart. R.I.P. Terry Jones. R.I.P. Kobe Bryant. R.I.P. John Andretti

Keep On Rockin' The Free World.

Member of the QSW Club, 9/18/18, and renewed the membership on 12/13/19 (Friday the 13th!)

Offline PatrickRox80

  • Double Showcase Winner
  • ******
  • Posts: 5135
Re: Pricing game lineup randomizer
« Reply #6 on: November 28, 2017, 08:09:15 PM »
Somehow, I got Magic # first here.


Offline RCPlanes59

  • Double Showcase Winner
  • ******
  • Posts: 1205
    • YouTube
Re: Pricing game lineup randomizer
« Reply #7 on: November 29, 2017, 10:58:52 AM »
Somehow, I got Magic # first here.


Yeah, one huge flaw is that it doesn't consider slotting requirements, so you can get Race Game first and Golden Road sixth. I might fix this in a future update.

Is there any way you could make a version of this for mobile? Great work!
Sadly, I don't know anything about coding mobile apps. I barely made it through introductory Java lol
Season 8 (2011-12) CSS 3rd Place