Kennt jemand einen 4-Gewinnt Algorithmus?
Kennt jemand einen 4-Gewinnt Algorithmus?
Geändert von Lin728 (19-08-2017 um 21:44 Uhr)
fänd ich jetzt nicht so schwer. Schliesslich ist das Feld ja recht klein - da kannst du massenhaft Prozessorzeit verpulfern
Also z.B. von unten Links aus für jedes Feld überprüfen, ob die drei rechts davon bzw oberhalb bzw diagonal nach rechts/links oben von der gleichen Farbe sind...
MfG Peschmä
The greatest trick the Devil ever pulled was convincing the world he didn't exist. -- The Usual Suspects (1995)
Hey, I feel their pain. It's irritating as hell when people act like they have rights. The great old one (2006)
http://wwwivs.cs.uni-magdeburg.de/~m...strategie.html
das hab ich dazu gefunden. Vielleicht hilft es ja ;-)
pornstars-online.de
Thx, werds mir mal ansehen.
@peschmae (hoffentlich richtig):
Hehe, hab ich mir auch schon gedacht. HotSpot sei dank :-)
Geändert von Lin728 (19-08-2017 um 21:44 Uhr)
*beifallklatsch*
Naja, ob mit Hotspot oder ohne ist gar nicht so wichtig. (Klar, mit ists schneller). Das Feld ist ja nur 9x6 oder so Felder gross - das macht ungefähr 200x maximal 3 Felder überprüfen - also etwa 300 oder so pro Zug. Das schaft ein PC mit links.
Aber so n cooler Algorithmus ist natürlich sexier
MfG Peschmä
The greatest trick the Devil ever pulled was convincing the world he didn't exist. -- The Usual Suspects (1995)
Hey, I feel their pain. It's irritating as hell when people act like they have rights. The great old one (2006)
Lesezeichen