comp.lang.ada
 help / color / mirror / Atom feed
From: Ross Higson <rossNOSPAMhigson@optusnet.com.au>
Subject: Re: New Ada ANSI console/X terminal game
Date: Wed, 09 Nov 2005 17:53:02 +1100
Date: 2005-11-09T17:53:02+11:00	[thread overview]
Message-ID: <43719ccf$0$25857$afc38c87@news.optusnet.com.au> (raw)
In-Reply-To: <m3lkzze91t.fsf@rr.trudgett>

David Trudgett wrote:

> For those who may be interested, I've just posted to my website a
> first release (version 0.99) of my "High Seas Battleship" network
> game. You can find the source code for it at:
> 
> http://www.zeta.org.au/~wpower/dkt/programs/high-seas-battleship.tar.gz
> 
> It's a full-screen colour text-based application written for Linux
> console or xterm, but should work on most ANSI compatible terminal
> devices. My program makes use of Samuel Tardieu's AdaSockets, which I
> doubt works on Windows (the manual seems to mention only Unix and
> OpenVMS), so I likewise doubt that High Seas will work as it is under
> Windows, even assuming that there is a suitable ANSI terminal
> available for Windows. It should be easy, however, to adapt the comms
> layer to use a different sockets library, if desired.
> 
...
> To compile under Linux/Unix, assuming you have GNAT and libadasockets
> installed, you will probably just need to edit the Makefile and run
> make.
> 

David,

Nice.

Since you already use some GNAT-specific packages, you could also use 
the package GNAT.Sockets. Then you wouldn't need AdaSockets. It is easy 
to modify your program to use GNAT sockets. I can email you the source 
changes if you want - it took me about 15 minutes to convert, since 
nearly all the changes are in the class_comms package.

Either way, once you have a native windows executable you could use my 
redirect program to run it. For example, instead of entering your commands:

battleship player_1 wait
battleship player_2 connect localhost

you would execute the programs under redirect:

redirect /noedit /uself /mode=vt100 battleship player_1 wait
redirect /noedit /uself /mode=vt100 battleship player_2 connect localhost

The redirect options ("/noedit /uself" etc) tell redirect how to emulate 
the mode your program appears to expect - especially the keyboard emulation.

Redirect is part of the Ada Terminal Emulator package. It uses GWindows 
and compiles under GNAT 3.15 or GNAT GPL 2005. But you don't need to 
compile it - just download the compiled version from:

http://www.members.optusnet.com.au/~rosshigson/

Ross.



  parent reply	other threads:[~2005-11-09  6:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-08 10:19 New Ada ANSI console/X terminal game David Trudgett
2005-11-08 17:38 ` Pascal Obry
2005-11-08 21:50   ` David Trudgett
2005-11-09  6:53 ` Ross Higson [this message]
2005-11-09  8:34   ` David Trudgett
2005-11-09  8:55     ` Ross Higson
2005-11-09 22:09       ` David Trudgett
2005-12-01  0:29     ` Randy Brukardt
2005-12-02  2:30       ` David Trudgett
2005-12-02  6:46         ` Martin Dowie
2005-11-12  9:05 ` David Trudgett
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox