1 Summary: A game of programming
2 Summary(pl): Gra w programowanie
7 Group: X11/Applications/Games
8 Source0: http://www.bluefire.nu/%{name}/%{name}-%{version}.tar.gz
9 Source1: http://www.bluefire.nu/%{name}/bots-light-01-06-11.tar.gz
10 Source2: %{name}.desktop
12 URL: http://www.bluefire.nu/droidbattles/
13 BuildRequires: qt-devel
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define _prefix /usr/X11R6
17 %define _mandir %{_prefix}/man
20 So, you're having this argument about who's the best programmer? Or
21 you just want to have some programming fun? What better way to do it
22 than a little game of AI programming.
24 In DroidBattles you design the bots by choosing which hardware they
25 should contain. Each bot can have up to 32 hardware devices that you
26 can choose freely from a list of available types. Examples include
27 weapons, armor, CPU:s, engines... etc.
29 When you have chosen the hardware it's time to program it. You make a
30 program (in an assembler like language) that is loaded into a virtual
31 RAM of the bot and then executed by the CPU device(s) you've included
32 with the bot. You communicate with your devices through simple in/out
35 Other features of DroidBattles includes team-battle and set up of
36 "rules" for a game, (you can enable/disable hardware devices and also
39 You can make the bot have it's own graphics that is shown when the
40 simulation runs. When everyhing is ready you assemble the program and
41 a .bot file is created. You can now test this bot against other bots
42 in the simulator, and hopefully your bot will crush it's opponents.
45 A wiêc spierasz siê o to, kto jest najlepszym programist±? Lub po
46 prostu chcesz zaznaæ przyjemno¶ci programowania? Có¿ lepszego mo¿e byæ
47 od gry, w której programujesz Sztuczn± Inteligencjê.
49 W DroidBattles projektujesz boty wybieraj±c jaki hardware powinny
50 zawieraæ. Ka¿dy bot mo¿e pomie¶ciæ do 32 urz±dzeñ sprzêtowych, które
51 mo¿esz dowolnie wybieraæ z dostêpnej listy. Mog± to byæ bronie,
52 pancerz, CPU, silniki... etc.
54 Gdy wybra³e¶ ju¿ sprzêt, nadszed³ czas na zaprogramowanie. Tworzysz
55 program (w jêzyku podobnym do assemblera), który jest ³adowany do
56 wirtualnego RAMu bota, a nastêpnie wykonywany przez jednostki
57 przetwarzania, które zainstalowa³e¶ w bocie. Komunikujesz siê ze
58 swoimi urz±dzeniami za pomoc± prostych instrukcji wej¶cia/wyj¶cia.
60 W¶ród innych zalet DroidBattles mo¿na wymieniæ bitwy dru¿ynowe, jak i
61 zestawy "zasad" dla gry (mo¿esz w³±czaæ/wy³±czaæ urz±dzenia sprzêtowe,
62 a tak¿e ustawiaæ koszt.)
64 Mo¿esz stworzyæ dla bota jego w³asn± grafikê, która bêdzie pokazywana
65 podczas symulacji. Gdy wszystko jest gotowe, assemblujesz program i
66 utworzony zostaje plik .bot. Mo¿esz wtedy przetestowaæ bota w starciu
67 z innymi botami w symulatorze i przy dozie szczê¶cia zostaæ zwyciêzc±.
76 find . -exec touch \{\} \;
81 cat installdir.cpp | sed 's@/usr/local/droidbattles@%{_datadir}/droidbattles@' > installdir.cpp.new
82 mv -f installdir.cpp.new installdir.cpp
86 rm -rf $RPM_BUILD_ROOT
87 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_applnkdir}/Games}
90 %{__make} install DESTDIR=$RPM_BUILD_ROOT
95 mv $i $RPM_BUILD_ROOT/usr/local/%{name}/bots/
97 cd $RPM_BUILD_ROOT/usr
98 mv local/%{name} X11R6/share/
99 rm -rf X11R6/share/%{name}/doc
100 ln -s /usr/share/doc/%{name}-%{version} X11R6/share/%{name}/doc
102 install %{SOURCE2} $RPM_BUILD_ROOT%{_applnkdir}/Games
103 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
106 rm -rf $RPM_BUILD_ROOT
109 %defattr(644,root,root,755)
110 %doc AUTHORS ChangeLog TODO
111 %doc %{name}/docs/en/*.html
112 %attr(755,root,root) %{_bindir}/*
113 %{_datadir}/droidbattles
115 %{_applnkdir}/Games/*