To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.org.ca.rtltorontoOpen lugnet.org.ca.rtltoronto in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Organizations / Canada / rtlToronto / 10750
10749  |  10751
Subject: 
Re: C$ - Code Only
Newsgroups: 
lugnet.org.ca.rtltoronto
Date: 
Thu, 5 Feb 2004 04:18:14 GMT
Viewed: 
1914 times
  
In lugnet.org.ca.rtltoronto, Steve Hassenplug wrote:
> Here's a quick look at the interface for a code-only C$ game.
> 
> 1) There must be some method to tell you code if it's going first or second.
> 2) When it's your turn, calculate a move, then send an IR message which
> indicates the column number (1-7) of the move.
> 3) Wait for a confirmation message (this step allows for better UI on the RCX)
> 4) Wait for opponent move (via IR, 1-7)
> 5) When IR signal is received, send confirmation message (send "move" back)
> 6) If you're not done, goto (2)

Steve,

  First things first, I have one program for player 0, and a second program for
player 1.  I cannot play both games with the same program.  I'm sure you'll
figure out why.

  There is no real need for steps 3 or 5 (steps 4 and 6 provide the same thing),
but if you tell me what value you want me to send I can send it.

  Can we send values 0-6 instead of 1-7?  Come on, we're all C or assembly
programmers here, right?

  I've got my 1500 page book working with standard IR messages, using neither
brickOS or QuiteC.  Curious?

Kevin

> 
> I have a PC interface that I will post, ASAP.  It uses the IR tower to watch
> games and display the board on the screen.  It also shows times, and move
> history.
> 
> If anyone wants to display their code, feel free to send it to me (or send a
> link)
> 
> The code should:
> A) Run on standard firmware (ha)
> 
> OR
> 
> B) Include the firmware and other files needed for download.
> 
> One other question that you (the coder) may want to answer: Does your program do
> anything random, or will it play the exact same game (given the same input)
> every time.  (people may want to test it more than once, if it DOES include
> something random)

I currently force the seed to the same value once when program starts the first
time.  I can force the seed for each game if desired.

> 
> Questions?
> Steve

Kevin



Message has 1 Reply:
  Re: C$ - Code Only
 
(...) So, does that mean (if you were using a robot) you would have to switch RCXs between games, depending on if you went first or second? :) (...) That's true. But, given the UI that I have set-up in MY RCX, it is required. Just send back the move (...) (23 years ago, 5-Feb-04, to lugnet.org.ca.rtltoronto)

Message is in Reply To:
  C$ - Code Only
 
Here's a quick look at the interface for a code-only C$ game. 1) There must be some method to tell you code if it's going first or second. 2) When it's your turn, calculate a move, then send an IR message which indicates the column number (1-7) of (...) (23 years ago, 2-Feb-04, to lugnet.org.ca.rtltoronto)

28 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
    

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR