Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi A - F > Algoritmi e strutture dati > [Progetto] Samegame
Pages (8): « First ... « 2 3 4 5 [6] 7 8 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Bloom
.illuminato.

User info:
Registered: May 2006
Posts: 229 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 3:14:49 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ahhh ok...cercavo ancora di capire.
Grazie :-)

31-01-2008 19:54
Click Here to See the Profile for Bloom Click here to Send Bloom a Private Message Find more posts by Bloom Add Bloom to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Bloom
.illuminato.

User info:
Registered: May 2006
Posts: 229 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 3:14:49 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Allora potresti riscrivermelo perfavore allineato???

31-01-2008 19:55
Click Here to See the Profile for Bloom Click here to Send Bloom a Private Message Find more posts by Bloom Add Bloom to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
tata1283
dottoressa!!!

User info:
Registered: Oct 2002
Posts: 495 (0.06 al dì)
Location: Albino (BG)
Corso: Informatica
Anno: 3
Time Online: 5 Days, 17:07:20 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Mossa funziona così:

Questo è il piano:

(4,3) (5,3) (6,3) (7,3) ...................... (10,3)
(4,2) ....... (6,2) (7,2)
(4,1) (5,1) (6,1)

Esegui mossa(4, 1, 1, 10, 1, 10)
(4,1) fa blocco con (5,1) (6,1) (6,2)
dopo mossa il piano sarà questo:

(4,2) ................ (7,2)
(4,1) (5,1) (6,1) (7,1) (8,1)

Così è più leggibile?

31-01-2008 20:16
Click Here to See the Profile for tata1283 Click here to Send tata1283 a Private Message Find more posts by tata1283 Add tata1283 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Bloom
.illuminato.

User info:
Registered: May 2006
Posts: 229 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 3:14:49 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Sisi grazie veramente.

31-01-2008 20:24
Click Here to See the Profile for Bloom Click here to Send Bloom a Private Message Find more posts by Bloom Add Bloom to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
b.elite
.precettore.

User info:
Registered: Jan 2008
Posts: 99 (0.02 al dì)
Location: mi
Corso: info
Anno: 3
Time Online: 1 Day, 3:33:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

proprio non riesco a vederci chiaro:?

cioè io utilizzerei una struttura dati che permetta ricerche efficenti per mantenere le bigle, no?

e poi un grafo per i cammini, ma il grafo come lo devo fare???
devo mettere tipo 4 puntatori up,down,right, left???

:?:?:?

31-01-2008 22:24
Click Here to See the Profile for b.elite Click here to Send b.elite a Private Message Find more posts by b.elite Add b.elite to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
tata1283
dottoressa!!!

User info:
Registered: Oct 2002
Posts: 495 (0.06 al dì)
Location: Albino (BG)
Corso: Informatica
Anno: 3
Time Online: 5 Days, 17:07:20 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by b.elite
proprio non riesco a vederci chiaro:?

cioè io utilizzerei una struttura dati che permetta ricerche efficenti per mantenere le bigle, no?

e poi un grafo per i cammini, ma il grafo come lo devo fare???
devo mettere tipo 4 puntatori up,down,right, left???

:?:?:?


se vai su algoteam ci sono le implementazioni delle varie strutture dati.

01-02-2008 08:32
Click Here to See the Profile for tata1283 Click here to Send tata1283 a Private Message Find more posts by tata1283 Add tata1283 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
b.elite
.precettore.

User info:
Registered: Jan 2008
Posts: 99 (0.02 al dì)
Location: mi
Corso: info
Anno: 3
Time Online: 1 Day, 3:33:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

grazie tata:-D

qualche consiglio su come gestire i blocchi?

01-02-2008 12:01
Click Here to See the Profile for b.elite Click here to Send b.elite a Private Message Find more posts by b.elite Add b.elite to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
b.elite
.precettore.

User info:
Registered: Jan 2008
Posts: 99 (0.02 al dì)
Location: mi
Corso: info
Anno: 3
Time Online: 1 Day, 3:33:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

cioè non so se conviene tenerli sempre aggiornati in modo da avere una var globale che contiene il numero dei blocchi

oppure

trovare il blocco solo quando si esegue una mossa e fare una funzione che calcola il numero blocchi solo quando occorre

bho

01-02-2008 12:03
Click Here to See the Profile for b.elite Click here to Send b.elite a Private Message Find more posts by b.elite Add b.elite to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
kalbiz
.primate.

User info:
Registered: Oct 2002
Posts: 72 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 2 Days, 16:48:32 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

sono bloccato, vediamo se riusciamo ad aiutarci, ho il mio grafo contenente le caselle-biglie, ma il mio blocco non è un struttura nuova corretto? cioè è l'insieme dei nodi del grafo adiacenti con uguale colore... corretto ? quindi se io faccio una funzione che mi mette in relazione tutti questi nodi con la lista delle adiacenze del mio grafo, dovrei aver trovato il blocco di colore x...
farei una funzione a parte per il conteggio dei blocchi rimasti, perchè non credo di poter decrementare una globale visto che poi le biglie si spostano sul piano dopo la cancellazione del blocco ...
spero ...

01-02-2008 13:54
Click Here to See the Profile for kalbiz Click here to Send kalbiz a Private Message Find more posts by kalbiz Add kalbiz to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
b.elite
.precettore.

User info:
Registered: Jan 2008
Posts: 99 (0.02 al dì)
Location: mi
Corso: info
Anno: 3
Time Online: 1 Day, 3:33:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

si hai ragione, sarebbe troppo dispendioso aggiornare i blocchi ogni volta che si inserisce una biglia o si esegue una mossa...

la soluzione migliore allora sarebbe data una casella (x,y) trovare l'insieme delle caselli adiacenti dello stesso colore (magari con una visita in ampiezza) e poi metterle dove? in una sturttuura dati temporanea tipo lista o pila?
sto dicendo cazzate???

01-02-2008 14:02
Click Here to See the Profile for b.elite Click here to Send b.elite a Private Message Find more posts by b.elite Add b.elite to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
b.elite
.precettore.

User info:
Registered: Jan 2008
Posts: 99 (0.02 al dì)
Location: mi
Corso: info
Anno: 3
Time Online: 1 Day, 3:33:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

mi spiego meglio:

quando si esegue una mossa bisgna:

travre la casella;
trovare il blocco a cui appartiene la casella;
eliminare il blocco;
stabilizzare la base;

ma una volta trovato il blocco ho cmq bisongo di mantenerlo???
se no non capisco come fare a sapere quali movimenti fare per stabilizzare la base

01-02-2008 14:08
Click Here to See the Profile for b.elite Click here to Send b.elite a Private Message Find more posts by b.elite Add b.elite to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
kalbiz
.primate.

User info:
Registered: Oct 2002
Posts: 72 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 2 Days, 16:48:32 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ummm, io farei, e facile a dirsi sulla carta, creo i nodi e li metto in un grafo, poi se i colori sono gli stessi li giunto...
ma quando eseguo una mossa devo :
-trovare la casella
-specificare una base r x c
-eliminare il blocco compreso nella base
-stabilizzare la base
credo che tu debba mantenere la base base RxC + che il blocco che viene eliminato no ?? magari hai ragione ... ma il blocco lo elimino e sposto solo le biglie comprese nella base ???

01-02-2008 14:23
Click Here to See the Profile for kalbiz Click here to Send kalbiz a Private Message Find more posts by kalbiz Add kalbiz to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
b.elite
.precettore.

User info:
Registered: Jan 2008
Posts: 99 (0.02 al dì)
Location: mi
Corso: info
Anno: 3
Time Online: 1 Day, 3:33:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

azz è proprio così le biglie del blocco da eliminare sono solo quelle comprese nella base...

01-02-2008 14:36
Click Here to See the Profile for b.elite Click here to Send b.elite a Private Message Find more posts by b.elite Add b.elite to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
b.elite
.precettore.

User info:
Registered: Jan 2008
Posts: 99 (0.02 al dì)
Location: mi
Corso: info
Anno: 3
Time Online: 1 Day, 3:33:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma anche tu stai facendo same game 2?

cmq c'è da dire che le lezioni di laboratorio non ti preparano per un cazzo...
il progetto è tutta un'altra cosa

01-02-2008 14:42
Click Here to See the Profile for b.elite Click here to Send b.elite a Private Message Find more posts by b.elite Add b.elite to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
kalbiz
.primate.

User info:
Registered: Oct 2002
Posts: 72 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 2 Days, 16:48:32 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

si sono sulla versione 2 ...
assolutamente d'accordo con te ...

01-02-2008 15:15
Click Here to See the Profile for kalbiz Click here to Send kalbiz a Private Message Find more posts by kalbiz Add kalbiz to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 15:38.    Post New Thread    Post A Reply
Pages (8): « First ... « 2 3 4 5 [6] 7 8 »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.275 seconds (74.67% PHP - 25.33% MySQL) con 24 query.