quadrapassel algorithm



Hi, everybody.

I don't like the fully random algorithm for picking new pieces in quadrapssel. (Mainly because you often get the same piece several times in a row) I wrote my own algo, which fills a "bucket" with all pieces, shuffels them and then removes every generated piece from the "bucket". At the moment the algorithm is hardcoded (would be nicer to choose it like bastard-mode).
Maybe someone is interested in it.

Greats deusmac


P.S.: Sorry for my bad C++
______________________________________________________
GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://movieflat.web.de

Attachment: my.patch
Description: Binary data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]