Autor Beitrag
Zlatan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 175



BeitragVerfasst: Mi 17.08.11 19:33 
Ich habe mal einen Fußballmanager entworfen, habe aber das gefühl
da stimmt noch was nicht.
Kann das mal jemand testen? Viel Spaß, Zlatan



hab noch mal alles überarbeitet :)
Einloggen, um Attachments anzusehen!


Zuletzt bearbeitet von Zlatan am Mi 31.08.11 15:13, insgesamt 2-mal bearbeitet
storestore
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 397
Erhaltene Danke: 7

WIN 7
C#
BeitragVerfasst: Mi 17.08.11 19:54 
Hmmm, also alles ok am anfang aber dann kommt man zu einem Punkt wo man immer nur verliert.
Oder denkst du das was anderes falsch ist
Zlatan Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 175



BeitragVerfasst: Mi 17.08.11 20:09 
Ich hab grad zum ersten mal alle spiele gewonnen, geht also mit ein wenig glück :) , aber ich meinte was anderes, wenn man silberspieler kauft, kommt machmal kein spiler aber geld wird abgezogen :( ???


Ich stell mal den Text rein für diesen Abschnitt: (silberspieler kaufen)
ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
if g<400 then begin showmessage ('Zu wenig Geld'); end
else if g >= 400 then begin ks:= random(30) +1; randomize;
g:= g-400; geld.Caption:= inttostr(g) +' $';
end;
if ks=1 then begin Sturm.Caption:= 'Anelka (83)'; stp:=83;
end else if ks=2 then begin Sturm.Caption:= 'Gomez (82)'; stp:=82;
end else if ks=3 then begin MF.Caption:= 'Nani (82)'; mp:=82;
end else if ks=4 then begin mf.Caption:='Ballack (83)'; mp:= 83;
end else if ks=5 then begin verteidiger.Caption:='Heitinga (82)'; vp:=82;
end else if ks=6 then begin verteidiger.Caption:='Zambrotta (81)'; vp:=81;
end else if ks=7 then begin tw.Caption:='Valdes (83)'; tp:= 83;
end else if ks=8 then begin tw.Caption:='Adler (82)'; tp:=82;
end else if ks=9 then begin Sturm.Caption:='Higuain (83)'; stp:= 83;
end else if ks=10 then begin Sturm.Caption:='Gilardino (81)'; stp:=81;
end else if ks=11 then begin mf.Caption:='Yaya Toure (82)'; mp:=82;
end else if ks=12 then begin mf.Caption:='Bale (83)'; mp:=83;
end else if ks=13 then begin verteidiger.Caption:='Samuel (83)'; vp:=83;
end else if ks=14 then begin verteidiger.Caption:='Albiol (80)'; vp:=80;
end else if ks=15 then begin sturm.Caption:='Olic (82)'; stp:=82;
end else if ks=16 then begin tw.Caption:='Abbiati (82)'; tp:=82;
end else if ks=17 then begin Sturm.Caption:='Suarez (83)'; stp:=83;
end else if ks=18 then begin mf.Caption:='Cazorla (80)'; mp:=80;
end else if ks=19 then begin verteidiger.Caption:='Chiellini (84)'; vp:=84;
end else if ks=20 then begin tw.Caption:='Lloris (83)'; tp:=83;
end else if kg=21 then begin verteidiger.Caption:='Mellberg (80)'; mp:=80;
end else if kg=22 then begin mf.Caption:='Mascherano (80)'; mp:=80;
end else if kg=23 then begin mf.Caption:='K.P.Boateng (80)'; mp:=80;
end else if kg=24 then begin mf.Caption:='Donovan (82)'; mp:=82;
end else if kg=25 then begin Sturm.Caption:='Benzema (83)'; stp:=83;
end else if kg=26 then begin Sturm.Caption:='Arshavin (83)'; stp:=83;
end else if kg=27 then begin Verteidiger.Caption:='Chivu (84)'; stp:=84;
end else if kg=28 then begin Sturm.Caption:='Pato (82)'; stp:=82;
end else if kg=29 then begin Verteidiger.Caption:='Carvalho (82)'; stp:=82;
end else if kg=30 then begin Sturm.Caption:='Huntelaar (84)'; stp:=84;
end;
p:= tp + vp + mp + stp;
power.Caption:= inttostr(p);
end;
FinnO
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1331
Erhaltene Danke: 123

Mac OSX, Arch
TypeScript (Webstorm), Kotlin, Clojure (IDEA), Golang (VSCode)
BeitragVerfasst: Mi 17.08.11 20:18 
Was viel shlimmer ist, ist, dass wenn man einen "Silberspieler" kauft, manhmal ein schon vorhandener Goldspieler überschrieben wird. das geld hat man dann zum fenster rausgeschmissen.
storestore
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 397
Erhaltene Danke: 7

WIN 7
C#
BeitragVerfasst: Mi 17.08.11 22:12 
Sorry aber das wars mit meiner Hilfe. Ich kann nämlich kein Delphi

PS: Nicht persönlich nehmen ;)
Regan
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2157
Erhaltene Danke: 72


Java (Eclipse), Python (Sublimetext 3)
BeitragVerfasst: Do 18.08.11 08:29 
user profile iconZlatan hat folgendes geschrieben Zum zitierten Posting springen:
Ich stell mal den Text rein für diesen Abschnitt: (silberspieler kaufen)

Und du denkst wirklich, dass noch jemand bei dieser Unordnung durchsieht? Ich empfehle dir, den Delphi Styleguide durchzulesen. Dann würden die ersten Zeilen deines Quelltextes ungefähr so aussehen:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
if g<400 then
begin 
  showmessage ('Zu wenig Geld'); 
end
else 
  if g >= 400 then 
  begin 
    ks:= random(30) +1
    randomize;
    g:= g-400
    geld.Caption:= inttostr(g) +' $';
  end;

Ich empfehle dir außerdem, diese unschöne if-Verschachtelung in eine [url=www.delphi-treff.de/...erzweigungen/#c4914]case-Verzweigung[/url] umzuwandeln.
storestore
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 397
Erhaltene Danke: 7

WIN 7
C#
BeitragVerfasst: Do 18.08.11 18:44 
Ohh ja ich hatte 327 dann habe ich einen Bronzespieler gekauft und hatte dann nur noch 317
Zlatan Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 175



BeitragVerfasst: Mi 31.08.11 14:59 
user profile iconstorestore hat folgendes geschrieben Zum zitierten Posting springen:
Ohh ja ich hatte 327 dann habe ich einen Bronzespieler gekauft und hatte dann nur noch 317


ja das ist pech, beste taktik ist es immer nur goldspieler zu kaufen, weil wenn ein goldspieler durch einen bronze ersetzt wird ...

ansonsten ein gutes spiel???
(hab es bisher 4 mal geschafft, alle Teams zu besiegen)

TIPP: Barca, Ac Mailand, Chelsea und Inter sind die besten mit 340)
storestore
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 397
Erhaltene Danke: 7

WIN 7
C#
BeitragVerfasst: Mi 31.08.11 16:40 
user profile iconZlatan hat folgendes geschrieben Zum zitierten Posting springen:
user profile iconstorestore hat folgendes geschrieben Zum zitierten Posting springen:
Ohh ja ich hatte 327 dann habe ich einen Bronzespieler gekauft und hatte dann nur noch 317


ja das ist pech, beste taktik ist es immer nur goldspieler zu kaufen, weil wenn ein goldspieler durch einen bronze ersetzt wird ...

ansonsten ein gutes spiel???
(hab es bisher 4 mal geschafft, alle Teams zu besiegen)

TIPP: Barca, Ac Mailand, Chelsea und Inter sind die besten mit 340)

Selber Pech! :tongue:

_________________
Der Pc ist nur so schlau, wie derjenige der in steuert!
"Don't Quit. Suffer now, and live the rest of your life as a champion"