Autor Beitrag
eruhenon
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 53



BeitragVerfasst: Mi 11.04.07 15:51 
Moin
Wie oben bereist erwähnt versuch ich nen sgf-file-reader für go schreibn. das porblem dabei ist nur, dass ich keine ahung hab wie ich die gui machen soll, denn bei dem standard-brett hat man 19x19 schnittpunkte an denen man einen stein setzten kann (insgesammt 361 wenn ich mich nicht verrechnet hab). nu bin ich zu faul für jeden dieser punkte ein eigenes timage zu erstellen aber mir will nichts anderes einfallen.
vielen dank schonmal für eure ideen!

Jan
azubi_20
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 593

WinXP SP2, Ubuntu 8.4
D7 Enterp., D2005 Prof., Java (Eclipse 3.4.0)
BeitragVerfasst: Mi 11.04.07 16:29 
ich weiss jetzt zwar nicht genau um was es geht, aber bietet sich da nicht ein Array of Timage an, das du zur Laufzeit erstellst ?
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Mi 11.04.07 16:33 
Nimm ein zweidimensionales Array und speicher die Daten in Records.
www.dsdt.info/grundl...he/komdatentypen.php

MfG
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Mi 11.04.07 16:48 
user profile iconazubi_20 hat folgendes geschrieben:
ich weiss jetzt zwar nicht genau um was es geht

de.wikipedia.org/wiki/Go_(Brettspiel)

[edit]Nein, Links mit Klammern kapiert der BBCode Parser nicht :motz:

Edit2: Besonders interessant: de.wikipedia.org/wik...ttspiel)#Computer-Go

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
eruhenon Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 53



BeitragVerfasst: Mi 11.04.07 17:21 
mir gehts in diesem fall nur um die gui da ich nur nen sgf-reader schreibn möchte
wie würde das denn aussehn wenn ich das über nen timage array erstellen würde?
das 2-dimensionale array is kein problem nur ich frag mcih wie ich das graphisch darstellen kann...
thx
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Mi 11.04.07 17:39 
Du musst ja nur in einer doppelten for-schleife (1-19) die position jedes images errechnen und diese per  myImageArray[x,y]:= TImage.Create(self) erstellen. Hierzu unbedingt den FAQ-Beitrag Suche in: Delphi-Library KOMPONENTEN DYNAMISCH VERWALTEN beachten!
Dann noch ein Bild laden (evtl. 3 verschiedene Bitmaps mitliefern, je 1 für schwarzer Stein auf Schnittpunkt, weißer Stein auf Schnittpunkt und leerer Schnittpunkt) und das Feld ist aufgebaut.

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
eruhenon Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 53



BeitragVerfasst: Mi 11.04.07 20:59 
danke funktioniert wunderbar