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 / 10722
10721  |  10723
Subject: 
Re: C$ - Code Only
Newsgroups: 
lugnet.org.ca.rtltoronto
Date: 
Mon, 2 Feb 2004 20:43:36 GMT
Viewed: 
625 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.

I can see a few soloutions:

1 on board UI. run prg slot 1 or 2 depending on who goes first.  for OTHER os's
then you can have an ON BOARD UI, press view, or prg. to start.

2. beam a "message" to each brick.  1 or 2.

3. put a touch sensor on each brick, and use it to comunicate to the prg.



2) When it's your turn, calculate a move, then send an IR message which
indicates the column number (1-7) of the move.



recomend that you use the "lego protocal" IR stuff, other wise your dealing with
strange PBForth stuff.

(hi ralph)

3) Wait for a confirmation message (this step allows for better UI on the RCX)

or you can skip this step and just go straight to step 4

4) Wait for opponent move (via IR, 1-7)

ok



5) When IR signal is received, send confirmation message (send "move" back)

or not.... you could skip this step

6) If you're not done, goto (2)

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.


umm, HELLO  I'm waiting!!!!!


If anyone wants to display their code, feel free to send it to me (or send a
link)

wadda ya think kevin???

should we(you mainly) offer C$ v1.1 code.



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)

Questions?

I have a question??   do you ~HAVE~ to tip if you are at a resturant and the menu says that a gratutiy will be automaticly added for groups over 8 ???

Steve



Message has 2 Replies:
  Re: C$ - Code Only
 
(...) <snip> (...) Chris, Feel free to post v1.1. It is just pomakis code with no changes. Kevin (21 years ago, 2-Feb-04, to lugnet.org.ca.rtltoronto)
  Re: C$ - Code Only
 
(...) This is recommended. (...) Yes. Standard Mindstorms IR messages. (0-255) (...) Yes, You can skip this step. But then it won't work. This is the protocol. (...) Yes, You can skip this step. But then it won't work. This is the protocol. (...) (...) (21 years ago, 2-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 (...) (21 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
    

Custom Search

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