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 > Fondamenti di architettura e programmazione > Progetto
Pages (22): « First ... « 8 9 10 11 [12] 13 14 15 16 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
jack1189
.fedelissimo.

User info:
Registered: Sep 2008
Posts: 55 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 7:46:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Scusate ma avendo la matrice, poi riconvertendola in array con le opportune attenzioni, sarebbe molto più semplice , visto che in fondo il percorso fa avanti e indierto e non conta che vada su giù destra o sinistra.
Per il write la stringa da riconvertire è salvata su toString.
Poi diventerebbe un casino fare muovere il player su una matrice visto che arrivati in fondo dovrebbe tornare indietro fino all'inizio.

13-02-2009 10:56
Click Here to See the Profile for jack1189 Click here to Send jack1189 a Private Message Visit jack1189's homepage! Find more posts by jack1189 Add jack1189 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Supernick
.tritagranchi.

User info:
Registered: Jan 2008
Posts: 323 (0.05 al dì)
Location: Albairate (MI)
Corso: Comunicazione Digitale
Anno: 3°
Time Online: 1 Day, 17:31:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Mhhh....non saprei, anche perchè come dice Jaky bisogna rimodificare tutta la struttura ecc....e poi comunque un controllo sulla matrice lo devi fare lo stesso per i percorsi spezzati.

DOMANDA IMPORTANTISSIMA

Si dice che la matrice deve essere letta dal basso verso l'alto...ma che senso?? (Vi propongo due casi)

1) se ho le righe A,B,C,D
viene fuori
D...............
C..............
B..............
A.............
e inizia a leggere da A

oppure

2) se ho le righe A,B,C,D
viene fuori
A..............
B...............
C..............
D..............
e inizio a leggere da D

Io sto lavorando con il primo caso, ma anche per fare il secondo dovrei cambiare comunque pochi indici, ma per sapere, quale dei due è corretto secondo voi???

grazie

13-02-2009 11:03
Click Here to See the Profile for Supernick Click here to Send Supernick a Private Message Find more posts by Supernick Add Supernick to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
jack1189
.fedelissimo.

User info:
Registered: Sep 2008
Posts: 55 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 7:46:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

a mio parere il secondo modo......aspettiamo conferma da altre persone

13-02-2009 11:18
Click Here to See the Profile for jack1189 Click here to Send jack1189 a Private Message Visit jack1189's homepage! Find more posts by jack1189 Add jack1189 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Supernick
.tritagranchi.

User info:
Registered: Jan 2008
Posts: 323 (0.05 al dì)
Location: Albairate (MI)
Corso: Comunicazione Digitale
Anno: 3°
Time Online: 1 Day, 17:31:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ok speriamo di ottenere una risposta

OT: 100 Post :D:D:D cosa ho vinto???

13-02-2009 11:26
Click Here to See the Profile for Supernick Click here to Send Supernick a Private Message Find more posts by Supernick Add Supernick to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
jack1189
.fedelissimo.

User info:
Registered: Sep 2008
Posts: 55 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 7:46:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

no scusa,ripensandoci credo che vadano bene tutte e due i modi......Però vediamo che aspettano gli altri

13-02-2009 11:49
Click Here to See the Profile for jack1189 Click here to Send jack1189 a Private Message Visit jack1189's homepage! Find more posts by jack1189 Add jack1189 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
fraBg
.amico.

User info:
Registered: Feb 2009
Posts: 37 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 15:13:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

scusate una domanda ma il metodo reload() andrà a ricreare anche la matrice o si limita a leggere la riga del nuovo file?

13-02-2009 12:28
Click Here to See the Profile for fraBg Click here to Send fraBg a Private Message Find more posts by fraBg Add fraBg to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Supernick
.tritagranchi.

User info:
Registered: Jan 2008
Posts: 323 (0.05 al dì)
Location: Albairate (MI)
Corso: Comunicazione Digitale
Anno: 3°
Time Online: 1 Day, 17:31:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

il codice che andrai a mettere in reload() penserà a leggere la riga del file, poi sta a te, a seconda della tua implementazione scegliere se richiamare altri metodi in reload() o no.

13-02-2009 12:35
Click Here to See the Profile for Supernick Click here to Send Supernick a Private Message Find more posts by Supernick Add Supernick to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Jaky
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 703 (0.09 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno: laureando
Time Online: 5 Days, 1:02:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Supernick
Mhhh....non saprei, anche perchè come dice Jaky bisogna rimodificare tutta la struttura ecc....e poi comunque un controllo sulla matrice lo devi fare lo stesso per i percorsi spezzati.

DOMANDA IMPORTANTISSIMA

Si dice che la matrice deve essere letta dal basso verso l'alto...ma che senso?? (Vi propongo due casi)

1) se ho le righe A,B,C,D
viene fuori
D...............
C..............
B..............
A.............
e inizia a leggere da A

oppure

2) se ho le righe A,B,C,D
viene fuori
A..............
B...............
C..............
D..............
e inizio a leggere da D

Io sto lavorando con il primo caso, ma anche per fare il secondo dovrei cambiare comunque pochi indici, ma per sapere, quale dei due è corretto secondo voi???

grazie


MmMm....io sto usando la prima che hai detto...cioè inizio a costruire il campo dalla prima che leggo,cioè inizio ad assegnare i valori della matrice partendo dalla riga A

13-02-2009 13:58
Click Here to See the Profile for Jaky Click here to Send Jaky a Private Message Find more posts by Jaky Add Jaky to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Jaky
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 703 (0.09 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno: laureando
Time Online: 5 Days, 1:02:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by jack1189
no scusa,ripensandoci credo che vadano bene tutte e due i modi......Però vediamo che aspettano gli altri


mmm...da sinistra a destra dal basso verso il l'alto...quindi è giusta la prima a mio parere :D

Last edited by Jaky on 13-02-2009 at 14:51

13-02-2009 13:59
Click Here to See the Profile for Jaky Click here to Send Jaky a Private Message Find more posts by Jaky Add Jaky to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
jack1189
.fedelissimo.

User info:
Registered: Sep 2008
Posts: 55 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 7:46:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

credo che il modo migliore sia il primo,scambiamo le righe e poi leggiamo come dice il testo,cioè dal basso verso l'alto

13-02-2009 14:29
Click Here to See the Profile for jack1189 Click here to Send jack1189 a Private Message Visit jack1189's homepage! Find more posts by jack1189 Add jack1189 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Jaky
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 703 (0.09 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno: laureando
Time Online: 5 Days, 1:02:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

il campo è pronto..manca solo il move...solo.. @_@

13-02-2009 15:30
Click Here to See the Profile for Jaky Click here to Send Jaky a Private Message Find more posts by Jaky Add Jaky to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ste84
.fedelissimo.

User info:
Registered: Mar 2005
Posts: 46 (0.01 al dì)
Location: meda
Corso: comunicazione digitale
Anno: 3
Time Online: 12:51:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ciao ragazzi, una domanda..
come avete risolto il problema che potrebbero dare le goose di un loop infinito appunto di salto di goose?

mi spiego con un esempio..

3 1 J G G 1 T

il Player è nella prima casella (3) lancia il dado, fa 4 va sulla seconda G, quindi raddoppia e quindi fa 1 T poi rimbalza 1 G e quindi di nuovo una goose!
e cosi via!
voi come avete risolto?
a proposito.. è giusto fare cosi comesto facendo e cioè che se il player non arriva perfettamente sul Traguardo rimbalza indietro?
oppure vince chi arriva al Traguardo anche se non con un numero perfetto?

altro dubbio:

3 1 J G 1 -1 B

in questo caso il player parte sempre dalla prima (3), lancia il dado e fa 3, capita sulla G quindi raddoppia e capita sulla B, torna indietro di 3(come da specifiche) e quindi di nuovo sulla G!
anche questo sarebbe un ciclo infinito..
voi come lo risolvete?

spero di essere statoabbastanza chiaro :D

13-02-2009 15:39
Click Here to See the Profile for ste84 Click here to Send ste84 a Private Message Find more posts by ste84 Add ste84 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Supernick
.tritagranchi.

User info:
Registered: Jan 2008
Posts: 323 (0.05 al dì)
Location: Albairate (MI)
Corso: Comunicazione Digitale
Anno: 3°
Time Online: 1 Day, 17:31:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

il campo è pronto..manca solo il move...solo.. @_@


Idem, anche a me manca "solo" il move.

@ste84: non credo sia un nostro problema occuparci dei loop che si possono generare in una partita, comunque si la questione che se va sul T ma ha tirato un numero più alto sisi rimbalza indietro

13-02-2009 15:49
Click Here to See the Profile for Supernick Click here to Send Supernick a Private Message Find more posts by Supernick Add Supernick to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ste84
.fedelissimo.

User info:
Registered: Mar 2005
Posts: 46 (0.01 al dì)
Location: meda
Corso: comunicazione digitale
Anno: 3
Time Online: 12:51:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

grazie per la rapida risposta,anche se non sono molto convinto che non sia un nostro problema :D

13-02-2009 16:02
Click Here to See the Profile for ste84 Click here to Send ste84 a Private Message Find more posts by ste84 Add ste84 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Pupino
- D J -

User info:
Registered: Nov 2003
Posts: 4223 (0.52 al dì)
Location: Paese dei Balocchi
Corso: Buenos aires
Anno: 2008 :)
Time Online: 27 Days, 15:16:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Jaky
il campo è pronto..manca solo il move...solo.. @_@


Anche a me!!!! :D :D :D

:asd:

__________________

PUPINO'S VIDEO
:asd:
FRANK JAY
:!:

UN BLOG :look:

13-02-2009 17:19
Click Here to See the Profile for Pupino Click Here to See the Blog of Pupino Click here to Send Pupino a Private Message Visit Pupino's homepage! Find more posts by Pupino Add Pupino to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 20:50.    Post New Thread    Post A Reply
Pages (22): « First ... « 8 9 10 11 [12] 13 14 15 16 » ... Last »   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.234 seconds (75.43% PHP - 24.57% MySQL) con 23 query.