Log in

View Full Version : Robotics Score System Program


Taiku
09-01-2007, 20:27
This is a small program capable of keeping score of the "donuts" for the Rack 'n' roll game.

It is very user friendly and requires only the VB5 or up runtime DLLs. Will run on XP without extra files.

To use grab an image on the left and drag it onto the grid.
To remove an image grab the image and drag it to the small box shape on the lower left.

To show or hide arrows click the checkbox at the top. While arrows are showing the "donuts" cannot be changed, removed or moved. If you press clear while arrows are showing they will still show but the score will change.

Lastly, you cannot drag, drop the second ring but you can remove it. if you try to it will copy the back one. <- will be changed shortly

-UPDATE : VERSION 1.4 ADDED ~1/10/07

Hope you enjoy!

~Jordan Piscitelli - Team 230 - Gael Hawks

Comments, questions, suggestions or errors can be posted below! But please only post errors found in the most recent version and post the message and preferable a picture or some other helpful information!

Pavan Dave
09-01-2007, 20:31
Nice work! It is a VERY easy program to use.


EDIT:
Found an error:
If you place a spoiler on a keeper, and than try to move that spoiler off of the keeper, it turns into the type of keeper it was.



Pavan.

EHaskins
09-01-2007, 21:27
Looks great! Same bug as Pavan, but looks good.

PhilBot
11-01-2007, 12:29
Hey... That's a really great tool. :D

No bugs found (Rev 1.4). So now it's time for feature requests :)

How about diabling the Keepers once 3 have been placed for that color....

Phil.

Off to play some more....

Setsanto
11-01-2007, 19:51
Yeah, thanks alot. Now if you wanted to get REALLY complicated, you COULD insert some impossibly complex algorithms that actually display what the best move would be...

Taiku
11-01-2007, 22:57
oooh i like it!!!
One that would show you how to score the best or block the best!!!

I assumed you would know you can only have three keepers but will add feature in that does that.

In case you are wondering i put all the versions in so you could get an idea on how a program evolves and changes.

Thanks for your support!

SoftwareBug2.0
12-01-2007, 02:10
oooh i like it!!!
One that would show you how to score the best or block the best!!!

I assumed you would know you can only have three keepers but will add feature in that does that.

In case you are wondering i put all the versions in so you could get an idea on how a program evolves and changes.

Thanks for your support!

I have a C program I wrote which doesn't have a pretty gui, but does include the option to tell what different moves would do.

In the zip file, the two .sh files contain lines to compile it, one with and one without showing what different moves would do.

Taiku
12-01-2007, 16:54
I dont know C, how yours works or how to even run it. Can you give me some more info on it!

Anyway here is the V 1.5 file(s). With "Tactics" or best and worse spots to put colors. Enjoy!

GBIT
12-01-2007, 17:09
This is a very Cool program. I know it will come in handy.

thanks

ps in playing with it i also found no problems......nice work

Ericgehrken
12-01-2007, 17:28
Nice program, I think I'm going to try to put it into a PDA for the drive team coach to use.

Lil' Lavery
12-01-2007, 17:53
Make a mac version ;)

itsme
12-01-2007, 18:41
Thanks, liked it, especially the one with the tactics, but I think there is an error: 1 tube alone doesn't give you any points. Correct me if I'm wrong.

ericand
12-01-2007, 18:57
Having this type of program available during a match would be cool, but it does not look like it would be allowed. Info from the FIRSRT forum says:

You will not be allowed to bring the program onto the field on a for the coach due to the restriction on special equipment (T23 - section 9.6.6).
The program might be allowed to to run on a laptop connected to the operator interface (it isn't clear to me if this would exceed the allowable functions under rule R79) but only the drivers could touch it (rule G49).

SoftwareBug2.0
13-01-2007, 00:56
I dont know C, how yours works or how to even run it. Can you give me some more info on it!

Um, yeah... I guess I'm a little light on documentation.

There's a windows binary of the version with strategy advice in this zip file.

When you run it, it will show all the info about a blank board and then prompt you for the x and y coordinates for a leg to change the contents of. Next, you input which tubes are on it, and then it prints out all the info about the new configuration.

Tell me if you have any difficulty running it.

tux
14-01-2007, 12:48
Here's my rack model:

http://shock.easthighschool.net/projects/rack/repo/trunk/

This one is in Python, so it should be usable on Mac and Linux too.

No GUI yet... that's next. Right now, I am just using it to run randomized games.

kevin.fort
16-01-2007, 12:26
We have a java version similar to this(right now it only does ringers but optimal placement of ringers, keepers, and spoilers is being added)
http://hacksaw.programming.googlepages.com/programming

tux
16-01-2007, 17:24
> http://shock.easthighschool.net/proj...ck/repo/trunk/

I added a GUI to the Python version now. Next goal is to
make it playable over the 'net.


> http://hacksaw.programming.googlepages.com/programming

This one, I get "Applet roboticsScore notinited" and then
"Loading Java Applet Failed".

astephen68
16-01-2007, 17:31
This is good program. How long did it take to make?

ham90mack
16-01-2007, 19:10
Hmm... the tactics don't seem to work very well on this program (v.1.5). Try lining up the rings like this starting in the upper left hand corner:
B
B R R
The program's suggestions seem to be a bit erratic. The most red gain showed a green piece on top of the lower blue piece and said the score was 10 to 4.:confused: Also, showing the most blue loss multiple times causes the projected red score to jump higher every time.
I am currently developing a program like this in Java, but it will be text based at first, or it always will, I'm not sure yet. But I will make sure that it works well with scoring and deciding the best next offensive and defensive moves. I am also thinking about having an option to save a text file with every move and suggestion made.

gnirts
16-01-2007, 19:23
> http://shock.easthighschool.net/proj...ck/repo/trunk/

I added a GUI to the Python version now. Next goal is to
make it playable over the 'net.


Change the link to the one in your previous post as this one 404s. You also might want to right a readme and .zip it all together so that those unfamiliar with Python can use it.

- Robinson

230Robokid
16-01-2007, 20:05
Hmm... the tactics don't seem to work very well on this program (v.1.5). Try lining up the rings like this starting in the upper left hand corner:
B
B R R
The program's suggestions seem to be a bit erratic. The most red gain showed a green piece on top of the lower blue piece and said the score was 10 to 4.:confused: Also, showing the most blue loss multiple times causes the projected red score to jump higher every time.
I am currently developing a program like this in Java, but it will be text based at first, or it always will, I'm not sure yet. But I will make sure that it works well with scoring and deciding the best next offensive and defensive moves. I am also thinking about having an option to save a text file with every move and suggestion made.

We knew about the Most blue loss causes the red score to jump up rapidly. We are currently updating the program as i am typing.

Also, the problem with the scoring, when it had a green one where to blue one is it is basically saying that you should have a red one there instead of the blue to minimize there score and to enhance yours.

Taiku
16-01-2007, 20:12
First off, thanks for the support. (The program originally took 6~7 hours to make. Saturday Night to Sunday Morning)

The errors with tactics are complicated. I used the same subprogram to score the real score as the projected one. Some of the variables are called something different and are therefore add too much or too little are not reset and some other crazy things happen.

Is only showing places that could become "red" wanted? Because the true tactics code is a long FOR-LOOP. So it could be done but not as easily as the reg code is.

V1_6 PROJECTED RELEASE 1/18/07 <- this post will be edited to include it.

~Jordan

ay2b
16-01-2007, 20:28
Here's an HTML version that I put together (and mentioned already on a different thread)

http://quail.queue.org/~shadow/rack-score.html

Mitchel418
14-02-2007, 15:12
Hi All:

Long time reader, first time posting. Jordon, I was wondering if you would post the source code to your program, so I could make a minor modification to the tactics methods/routines. At present, that is to say V1.5, the best play sometimes proves to be covering a keeper with a spoiler. I think I could elminiate this, and would gladly post the new version and code here. (Note: If I am overlooking a posted V1.6, my apologies. I think it's a great program, and I'm not trying to step on any toes here, just think I could help.)


--Mitchel

Cynix
14-02-2007, 18:30
Here's a simulator written in java, should run on any system with java 1.5 (5) or higher. http://x7chat.com/temp/simulator.zip

I wrote it near the beginning of the build seasons because I had nothing else to do yet, I'm not working on it anymore so if you find bugs you'll have to fix them yourself or use a different program. Feel free to steal the source, algorithms etc. for anything you want.

It has a gui, move recommendation, score display and source code. Just a note on the gui, the different colored yellow dot represents the light facing your side of the arena (move recommendations are also based on distance to your home side). On windows double click racksim.bat to start. Move recommendations are done through brute force, but unless you're running a really old computer it shouldn't have any speed problems. The school's ancient 2ghz P4's handled it with no noticably delays.

ham90mack
16-02-2007, 19:53
Ok... I have finally finished my version of the FRC 2007 Strategy Solver (and scorekeeper). My program lets you place ringers, keepers, and spoilers the way you are supposed to (and remove spoilers as well) and tallys up the score, but it has much more.
It determines the next best offensive and defensive move for both teams. If it finds two moves that are equal in strength, it randomly chooses one of them.
It lets you undo and redo moves, which is nice if you misplace a ringer.
It lets you save the progress of the round to a file to continue later. This feature lets you undo moves when you load that you have done before saving if you want to.
You can even dump every move to a file for later review! This dump includes the score and strategy for each move.
The program is written in Java and can be run using any computer with JRE 1.5 or higher. The program is text-based, but it should still be a good tool for strategy seeing Taiku hasn't posted version 1.6 of his program yet. The program is in an executable jar file, so there is no need to compile the code.
The jar file is found here: http://ham90mack.googlepages.com/frc07strat
I would like feedback on my program, so either reply here, PM me, or use the contact page on my website above.

And yes, it has been a while since I have posted here, but thanks to the snow my school system closed every day except for Monday this week! So I have had a bit of time to work on the program this week...

ham90mack
21-02-2007, 17:08
I have recently updated my program to have a more graphical interface and shorthand commands. These shorthand commands allow multiple ringers to be placed! The old way of placing ringers still exists for the new users. Just look at the help dialog when you get to the main screen (after keepers are placed).

Once again, you can download the jar file here: http://ham90mack.googlepages.com/frc07strat

What does everybody think about this program?

macgyver
21-02-2007, 19:49
is there a way to get any of these on to a pocket pc. any help would be appreciated.

ham90mack
21-02-2007, 20:18
I don't use a pocket pc, but if it is able to run Sun JRE 1.5+ (http://java.sun.com/javase/downloads/index.jsp), you can use my java program. Although it might be hard to read the text area, you can read the help dialog on a computer before you use in on the pocket pc.

NightWolf1298
01-03-2007, 20:24
Here's a .NET 2.0 version, written in C#: http://longwoodrobotic.6.forumer.com/viewtopic.php?p=488

Assorted features:
Accurate, real-time scoring that includes detection of sequences that wrap around the edge of the Rack. Match timer with end-of-round buzzer. Pause/resume/restart matches. Interactive Rack, featuring full support for keepers, Red Alliance / Blue Alliance ringers, and spoilers. Save and load matches in XML format, at any point in the match, and resume from that point when you load. Automatically record an event-based, four-state match history stack that allows you to view every single move made during a match. History that gets saved along with the match, so you can review matches after the day's competition ends to enhance strategy planning for the next day's matches. (And, coming soon: Search across a folder of saved matches for specific information: score ranges, games in specific states, time left in matches, certain team numbers / names on certain alliances, etc.)

Raivo

GBIT
08-03-2007, 10:42
is it possable to get a mac version.

ham90mack
08-03-2007, 11:11
is it possable to get a mac version.

Mac version of what? There are two games on this page written in Java, which is compatable with Mac if Java is installed. The one I have can be used with JRE 1.5+. The other program requires you to compile it, which would be the JDK and computers normally don't come with that. You can try my program at http://ham90mack.googlepages.com/frc07strat

Unless the other people that made executables has bothered to make a mac version, then there would probably be no other compatable program.

LordTalps
08-03-2007, 11:39
Make a mac version ;)
Make an upgrade :p

Render
08-03-2007, 12:03
Mac version of what? There are two games on this page written in Java, which is compatable with Mac if Java is installed. The one I have can be used with JRE 1.5+. The other program requires you to compile it, which would be the JDK and computers normally don't come with that. You can try my program at http://ham90mack.googlepages.com/frc07strat

Unless the other people that made executables has bothered to make a mac version, then there would probably be no other compatable program.

Trying your program won't do any good for a mac user...MAC has a COMPLETELY different codebase, it is similar to code written for unix which is NOT java/c/c++

and the JDK is for compiling...sure he would be able to compile it but running it is a completely different story. To run it he needs a Java Virtual Machine written for the MAC OS (I know there is one for Linux, but I am very unsure about MAC)

ham90mack
08-03-2007, 12:39
Trying your program won't do any good for a mac user...MAC has a COMPLETELY different codebase, it is similar to code written for unix which is NOT java/c/c++

and the JDK is for compiling...sure he would be able to compile it but running it is a completely different story. To run it he needs a Java Virtual Machine written for the MAC OS (I know there is one for Linux, but I am very unsure about MAC)

I know that the JDK is used for compiling, I was just pointing out that the other java program that is posted here requires compiling.
However, mine is already compiled and put in a jar file. Try executing it, GBIT, and if it doesn't work, then try downloading the latest JRE from Apple at: http://www.apple.com/macosx/features/java/ (I don't see why Sun doesn't bother putting the file on their servers...) Here is a direct link to the download page (http://www.apple.com/downloads/macosx/apple/macosx_updates/j2se50release4intel.html) if you can't find it.

If this doesn't work (and I don't see why not, Sun points to Apple's java page), then there is no hope, for now.

Alan Anderson
08-03-2007, 12:47
Trying your program won't do any good for a mac user...MAC has a COMPLETELY different codebase, it is similar to code written for unix which is NOT java/c/c++...

His program works exactly as it should on a Mac. The Java runtime for Macintosh is Java. That's the whole point of Java -- the underlying OS does not matter.

ham90mack
08-03-2007, 12:58
His program works exactly as it should on a Mac. The Java runtime for Macintosh is Java. That's the whole point of Java -- the underlying OS does not matter.

Of course if Render is talking about Apple's own version of Java (if they have one), then he would probably be right. I noticed that VS.NET has its own version of Java (J#) and it is totally different. It is annoying when trying to program on a computer that does not have Sun's JDK but has J#...

However, Macintosh computers should have JRE pre-installed. If the mac is a bit old, it might have version 1.4.2. My program is only compatable with JRE 1.5+, so it is possible that the macintosh would be out of date. If my program doesn't work when you try to execute it, install the latest version of the JRE at the link mentioned above.