Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   score tracker (http://www.chiefdelphi.com/forums/showthread.php?t=15662)

VanWEric 30-12-2002 20:30

score tracker
 
the kick off is before us, and i was wondering if anyone had any plans to make a score tracker for the game. Personally, i am going to try to bang out the alpha to some mfs pos before they finish announcing the game. That would make me happy.

rbayer 30-12-2002 21:13

Unfortunately, I am physically incapable of writing quick-and-dirty apps. They all start that way, but the little voices inside my head don't let me sleep until I've squashed every bug and beautified everything my kindergarden-level art skills can. I haven't slept in three months.

Ian W. 30-12-2002 23:27

my guess is if anything, dan will make us a purty one in flash, if anything at all. i don't have time to make anything, but dan always has time for flash, or so it seems... :p

Gope 31-12-2002 00:43

I dunno
 
well, depending on what time i have, i'll prolly pump out a score tracker for laptop use...thanks for the idea man

Mongoose 31-12-2002 01:51

Sounds interesting... But... Err... What kind of score tracker? Something where you put in the team number and score, and then it'll search in a file for the team number and update their score?

Gope 31-12-2002 02:09

I was thinking something with graphics of the game court and all the components that could be draged or moved into scoring positions...that way a view could recreate the game on the laptop and have a decent idea of the outcome, atleast a much better one than what u could figure in ur head

evulish 04-01-2003 20:35

I'm going for quick and dirty...

It's being made in Perl :) GUI is for wussies! :D

evulish 04-01-2003 21:03

Code:

#!/usr/bin/perl

#mehh

print "Largest stack of alliance 1: ";
$a1stack = <>;
print "All other alliance 1 boxes: ";
$a1box = <>;
print "Number of alliance 1 bots on top part of goal: ";
$a1bot = <>;


#alliance 2

print "Largest stack of alliance 2: ";
$a2stack = <>;
print "All other alliance 2 boxes: ";
$a2box = <>;
print "Number of alliance 2 bots on top part of goal: ";
$a2bot = <>;


$a1score = ($a1stack * $a1box) + (25 * $a1bot);
$a2score = ($a2stack * $a2box) + (25 * $a2bot);
print "--------\nScores:\n Alliance 1: $a1score\n Alliance 2: $a2score\n";

if ($a1score > $a2score) { $ht = 1; $hs = $a1score; $ls = $a2score; }
else { $h2 = 2; $hs = $a2score; $ls = $a1score; }

$qpw = ($ls * 2) + $hs;

print "Alliance $ht Wins!\nQualifying points for winner: $qpw\nLoser: $ls";


Do I get a prize or something? :P I guess I could make sure they actually typed numbers in there...and make sure those numbers are correct...

Bah. That means extra work for me :D

AJ Quick 04-01-2003 21:32

Is it that hard to use a calculator? :D Why not just use a TI and write a simple program?

Just don't forget disqualification points, and points for having robots under robots at the end on the platform.

Elgin Clock 04-01-2003 21:38

I hate to be the non programming voice of reason, but MS Excel will work perfectly to solve the score tracking problem. I'm going to write my first (ha) excel program and gonna put it on my new pocket pc for competition time!

Ashley Weed 04-01-2003 21:52

Quote:

Originally posted by AJ Quick
and points for having robots under robots at the end on the platform.

huh?.. please explain

sanddrag 04-01-2003 22:01

Quote:

Originally posted by weedie
huh?.. please explain
If you manage to get a robot on top of yours, no part of it touching the playing surface, and you are comlpletely on the horizontal part of the ramp, you get 50 points for your alliance.

Now if your alliance has both of your sides robots side by side up there, do you get 50 that way too?

evulish 04-01-2003 23:52

Sheesh...did FIRST get sick of easy scoring? I liked it when I could just count balls and multiply something...

VanWEric 05-01-2003 17:07

Well, i guess a score tracker is kinda useless. Not like 2 yrs ago... I guess now we will have to make some scouting stuff. Predictor of matches anyone?

Ashley Weed 05-01-2003 17:10

Quote:

Originally posted by sanddrag
If you manage to get a robot on top of yours, no part of it touching the playing surface, and you are comlpletely on the horizontal part of the ramp, you get 50 points for your alliance.

Now if your alliance has both of your sides robots side by side up there, do you get 50 that way too?

isn't there enough room on top of the platform for all four robots to be parked up there??????

HolyMasamune 05-01-2003 19:34

i would really like to see a program on a computer where you can drag the boxes and it'll count score instead of manually counting how many boxes there are and then doing the score, because if you can count the boxes, you can most likely be able to calculate the score in your head =P

EvanG 05-01-2003 19:51

Well, if anybody needs a quick and dirty score keeper, here is something i threw together in VB in 10 minutes, ewww i know. It's hardly graphically enhanced as the last years flash program that some team kindly provided, it works. I intend to add the opponent alliance side score and QP, plus best potential score and reasonable score. It's 12kb, 24kb compiled, so if anyone wants to take the code who actually uses VB and can work wonders, just ask.

http://members.cox.net/bounty_rook/2003FIRST.exe

Like i said, nothing purdy, but it gets the work done for a quick calculation of scores based on your boxes.

nwagers 05-01-2003 20:03

something a little more
 
since the human player won't be doing anything after the initial setup they should have plenty of time to count boxes. If they do have time to count them, it would be nice if it would input the first and second tallest stack along with the number just lying around and determine if it is more efficient to knock down the highest stack or leave it standing....

PS anyone know what edition of VB.NET we recieved in the kit?

Mongoose 05-01-2003 23:11

Are you even allowed to take a laptop into the arena with you? I thought the score tracker was for spectators.

A scouting program sounds like something more useful. You could have something asking questions about the team's robot like "Stacks boxes?", a slider for speed or torque from 1-10, a description of strategy and whether it's offensive or defensive, and some general comments, then store it all in a database so you can dig it up later. Maybe even include a snapshot of the team's robot.

P.S. The Kit of parts says "Microsoft, Visual Studio Net", so I guess it's the whole .NET shebang (version 7.0 if you want a number), most likely student edition, though.

rwaliany 05-01-2003 23:32

Score Tracker
 
Yeah, I was bored the yesterday. So I made a score tracker in c++.
http://www.chiefdelphi.com/forums/pa...er&paperid=123

It has the source code and an executable. If you want to add on to it and make it better go ahead. Its completely standard and should work with any compiler.

there's no input checking so if you enter words, too bad

Yeah, in a bit around like 1 or 2 am, I will work on a better version which will use a recursive function to tell you what you can do to improve your score. It will tell you what will help the most to increase your qualifying score and total score.

- Ryan

nwagers 06-01-2003 15:12

laptops
 
Yes, I don't remember where exactly the rule was, but laptops are allowed in the player's station, but may not be used to input to the OI. As for VS.NET (typo the first time), I understand it is version 7.0. The edition is either Enterprise Architect, Enterprise Developer, or Professional (I'm not sure if there is an "Academic"). But no big deal, I'll find out in an hour when I dig through the two boxes we just got.

Leon Machado IV 06-01-2003 16:58

I would love to see if anyone could make a palm version of the scorekeeper similar to last years. Cya


All times are GMT -5. The time now is 11:54.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi