Subject:
|
Re: Starting C4 Games
|
Newsgroups:
|
lugnet.org.ca.rtltoronto
|
Date:
|
Sat, 17 Jan 2004 03:34:28 GMT
|
Viewed:
|
511 times
|
| |
| |
In lugnet.org.ca.rtltoronto, Derek Raycraft wrote:
> One thing that has not been clearly indicated in the rules is how the
> connect 4 games will be started. I have what I think is a simple proposal.
>
> The game is started by pressing the turn button on the robot that is to
> go first. If playing with the Arbitrator it will provide this signal.
>
> The robot will scan the board, see that there are no chips played, play
> its first move and pass turn.
>
> The second robot will know it started second because when it scans the
> board there is already a chip there.
>
> Since the game doesn't start until the first chip is dropped the
> Arbitrator will start time when the first play robot passes turn.
>
> This should be easy for everyone to implement. Doesn't require
> switching programs or telling the robot which side it's playing in
> advance. And it works for arbitrated games, non-arbitrated games and
> games with a human.
For some reason, I was thinking about this today, also. :) I agree this needs
to be clear, because VERY few games require this level of start-up cooperation.
Your suggestion:
1) Robot 1 receives Start Game signal from Arbitrator (or external source)
2) Robot 1 makes first move
3) Robot 1 signals EOT
4) [Arbitrator starts game timer and signals Robot 2]
5) Robot 2 makes its first move
There may be a problem if no Arbitrator is used. Both robot's EOT line are
connected together, so when R1 receives the Start Game signal, both will start,
unless R2 is not RUN until after R1 is making it's first move. (or the sensor
wire is not connected until after R1 is making it's move)
I've also discovered when two RCX sensor lines are connected, polarity matters.
If the line is reversed on one side, both RCXs will read the switch as closed.
Another issue may come up when a robot starts. It may need to run it's "homey"
code which could include pressing the End of Turn button.
I plan on connecting a polarity switch to the line which will allow the line to
be reversed, and disconnected from external sources, as required.
Some people may need to specify if their robot is going first or second (red or
black), but that shouldn't matter with your starting scheme, and it all looks
good if the arbitrator is used.
Good plan
Steve
|
|
Message has 2 Replies: | | Re: Starting C4 Games
|
| (...) I noticed that too. How about we simply agree that everyone connects the arbitrating wire to the sensor with the wire facing away from the display. If someone's design doesn't permit this sort of connection, then it can be easily reversed with (...) (21 years ago, 17-Jan-04, to lugnet.org.ca.rtltoronto)
| | | Re: Starting C4 Games
|
| (...) This is why you cannot listen to your end of turn sensor. There will only ever be one sensor attached to a sensor port and one port attached to one sensor. The will remove all these issues of what happens when two or more sensor ports are (...) (21 years ago, 17-Jan-04, to lugnet.org.ca.rtltoronto)
|
Message is in Reply To:
| | Starting C4 Games
|
| One thing that has not been clearly indicated in the rules is how the connect 4 games will be started. I have what I think is a simple proposal. The game is started by pressing the turn button on the robot that is to go first. If playing with the (...) (21 years ago, 17-Jan-04, to lugnet.org.ca.rtltoronto)
|
42 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|