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 ... « 9 10 11 12 [13] 14 15 16 17 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Supernick
.tritagranchi.

User info:
Registered: Jan 2008
Posts: 323 (0.05 al dì)
Location: Albairate (MI)
Corso: Comunicazione Digitale
Anno:
Time Online: 1 Day, 17:31: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


Beh, ma alla fine è una normalissima cosa che potrebbe verificarsi, perchè comunque il tizio che va in loop continua ad accumulare punti, nel frattempo (sempre che non vadano in loop tutti e 4, e li è proprio sf1ga) appena arrivano su T termina la partita e chi ha accumulato di più vince.

Curiosità, voi come e dove avete gestito il controllo dei percorsi spezzati?

Io ho usato un marcatore che va a marcare gli elementi su il primo percorso disponibile, e praticamente alla fine di ciò devono rimanere solo elementi marcati o elementi vuoti, altrimenti ecccccccezione:D

13-02-2009 17: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
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

Nella classe Player si legge tra gli attributi:

?? position: variabile di istanza che conserva la posizione corrente del giocatore all' interno del campo di gioco; il tipo non è specificato perché la scelta è lasciata a voi.

- si parla di variabilE.


Voi come avete fatto??

__________________

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

UN BLOG :look:

13-02-2009 17:45
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
Collapse
Supernick
.tritagranchi.

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

Post actions:

Edit | Report | IP: Logged

io ho messo una matrice, che però vado a settare tramite un setPosition(int x, int y)

13-02-2009 18:10
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
AnTHrAx
.dead end.

User info:
Registered: Apr 2004
Posts: 100 (0.01 al dì)
Location: milano
Corso: comunicazione digitale
Anno: 5
Time Online: 21:07:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

anche a me manca "solo" il move :|

e non so bene come gestire le cose...
nn so se dichiarare position come una matrice :|

__________________
:O

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

User info:
Registered: May 2008
Posts: 56 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 9:56:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

se mettete position come una string poi con il tokenizer vi salvate la posizione corrente, o anke con il charat, se la mettete sempre uguale, ma è meglio il tokenizer. secondo me.

13-02-2009 19:07
Click Here to See the Profile for Pavo88 Click here to Send Pavo88 a Private Message Find more posts by Pavo88 Add Pavo88 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

si lavora su una matrice..perchè array o tokinizer o altre robe? bastano due int scusate, che identificano la posizione nella matrice :|

13-02-2009 19:32
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
towl88
.fedelissimo.

User info:
Registered: Feb 2009
Posts: 44 (0.01 al dì)
Location:
Corso: Comunicazione digitale
Anno: primo
Time Online: 20:22:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Jaky
si lavora su una matrice..perchè array o tokinizer o altre robe? bastano due int scusate, che identificano la posizione nella matrice :|

ma scusa se fai il tokenizer non è + tranquillo rispetto a quello di creare un array con solo due posizioni????

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

User info:
Registered: May 2008
Posts: 56 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 9:56:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma poi, mi spieghi come fai a mettere in una sola variabile 2 int se non usi una string?

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

User info:
Registered: Feb 2009
Posts: 44 (0.01 al dì)
Location:
Corso: Comunicazione digitale
Anno: primo
Time Online: 20:22:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

esatto

13-02-2009 19:46
Click Here to See the Profile for towl88 Click here to Send towl88 a Private Message Find more posts by towl88 Add towl88 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

scusate ma...mica è detto che la posizione sia cofidicata in un'unica variabile! nessuno ti vieta di usarne 2

13-02-2009 20:26
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
Supernick
.tritagranchi.

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

Post actions:

Edit | Report | IP: Logged

Anche perchè non vedrei strategie migliori.....e poi non ho capito scusate....perchè usare StringTokenizer ecc...????

ma poi, mi spieghi come fai a mettere in una sola variabile 2 int se non usi una string?


Scusate...

basterebbe semplicemente

protected int position[];
..
.
.
.
.
void setPosition(int x, int y)
position[0]=x;
position[1]=y;

così non dovete fare tokenizer e chissà che altro, vi fate due metodi getX e getY che vi tornano rispettivamente position[0] e position[1] no???

13-02-2009 20:50
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
towl88
.fedelissimo.

User info:
Registered: Feb 2009
Posts: 44 (0.01 al dì)
Location:
Corso: Comunicazione digitale
Anno: primo
Time Online: 20:22:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

va beh alla fine fanno la stessa cosa....era perchè così almeno nn c'erano problemi col position del toString di player...cioè almeno gli mettevi subito la stringa lì dentro e amen...però vanno bene entrambi i modi...

13-02-2009 21:08
Click Here to See the Profile for towl88 Click here to Send towl88 a Private Message Find more posts by towl88 Add towl88 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:
Time Online: 1 Day, 17:31:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Mah secondo me qui ci stiamo facendo paranoie per niente sul fatto se abbiamo/non abbiamo sbagliato a scegliere il tipo di varibile per position.....alla fine c'è scritto, la scelta è libera

13-02-2009 21:10
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
towl88
.fedelissimo.

User info:
Registered: Feb 2009
Posts: 44 (0.01 al dì)
Location:
Corso: Comunicazione digitale
Anno: primo
Time Online: 20:22:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

infatti....^_^... l'importante è che qualsiasi cosa si scelga funzioni giusto?

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

User info:
Registered: May 2008
Posts: 56 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 9:56:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

si in effetti l'array non sarebbe scomodissimo...ci penso
grazie

13-02-2009 21:59
Click Here to See the Profile for Pavo88 Click here to Send Pavo88 a Private Message Find more posts by Pavo88 Add Pavo88 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:31.    Post New Thread    Post A Reply
Pages (22): « First ... « 9 10 11 12 [13] 14 15 16 17 » ... 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.282 seconds (66.35% PHP - 33.65% MySQL) con 24 query.