Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
programming game
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
TimSSC
Apprentice
Apprentice


Joined: 20 Apr 2006
Posts: 170
Location: Cambridge, MA

PostPosted: Fri May 19, 2006 3:46 pm    Post subject: programming game Reply with quote

I am looking for a game, and am wondering if anyone knows of anything like this (for linux, of course. preferably part of the portage tree).

I recently played this game I liked, called robocode, where you write AI scripts for these tanks that then battle it out. I am looking for other games like this. preferably using real programming languages, and I am curious if there are other ones other than the typical tank battle ones?

thanks!
Back to top
View user's profile Send private message
Philantrop
Retired Dev
Retired Dev


Joined: 21 Dec 2004
Posts: 1130
Location: Germany

PostPosted: Fri May 19, 2006 3:55 pm    Post subject: Reply with quote

RealtimeBattle!

You can program the bots in basically any language - as long as it can read/write from stdin/stdout. It's really great and the best game of its kind I've ever seen.

http://realtimebattle.sourceforge.net/ wrote:

RealTimeBattle is a programming game, in which robots controlled by programs are fighting each other. The goal is to destroy the enemies, using the radar to examine the environment and the cannon to shoot.

Here is a list of features of RealTimeBattle:

* Game progresses in real time, with the robot programs running as child processes to RealTimeBattle.
* The robots communicate with the main program using the standard input and output.
* Robots can be constructed in almost any programming language.
* Any number of robots can compete simultaneously if allowed by your operating system.
* A simple messaging language is used for communication, which makes it easy to start constructing robots.
* Robots behave like real physical object.
* You can create your own arenas.
* Highly configurable.
* It is distributed under the General Public License (GPL)


And here's an ebuild for your overlay:

games-simulation/realtimebattle realtimebattle-1.0.8.ebuild:

# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

MY_P1E="RealTimeBattle-${PV}-Ext"

DESCRIPTION="A programming game in which robots controlled by programs fight each other."
HOMEPAGE="http://realtimebattle.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P1E}.tar.gz"

LICENSE="GPL-2"
KEYWORDS="x86"
IUSE="perl nls java debug doc"

DEPEND=">=x11-libs/gtk+-2.0.3
                perl? ( >=dev-lang/perl-5.6.1 )
                nls? ( sys-devel/gettext )
                java? ( virtual/jre )"
RDEPEND="${DEPEND}"

src_unpack() {
        unpack ${A}
        MY_P="${MY_P1E}"
        #S="${WORKDIR}/${MY_P}" it does not run :(
        cd ${WORKDIR} &&
                mv ${MY_P} ${P}
}

src_compile() {
        use nls || myconf="--disable-nls"
        econf $(use_enable debug) ${myconf} || die "Configure failed"
        emake || die "Compile failed"
}

src_install(){
        make DESTDIR="${D}" install || die "Install failed"
        mkdir -p ${D}/usr/share/games ${D}/usr/games/bin
        mv ${D}/usr/bin/* ${D}/usr/games/bin/
        use doc || rm -Rf ${D}/usr/games/RealTimeBattle/Documentation
        mv ${D}/usr/games/RealTimeBattle ${D}/usr/share/games/
        rm -R ${D}/usr/bin
}
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum