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 ... « 13 14 15 16 [17] 18 19 20 21 » ... 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

controlla sul sito del prof Cazzola o del prof Malchiodi, c'è quello aggiornato.

poi avete lavorato slo con una matrice o anche con un array contenente solo le caselle "buone"???


Io ho lavorato solo su una matrice, tenendomi come riferimento i pezzi di inizio e fine percorso (calcolati in Board tramite un metodo apposito, dopo aver opportunamente esaminato se il percorso presenta o no percorsi spezzati, in tal caso eccezione), e poi ho collocato i giocatori sulla prima casella di start presente leggendo dal basso verso l'alto e da sx verso dx

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

ragazzi ma il move del player come siete riusciti a farlo?(nella matrice)

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

Supernick novità riguardo gli errori della sottoposizione???

18-02-2009 10:36
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:
Time Online: 1 Day, 17:31:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ah giusto, si non è un errore del prof, errore mio (come volevasi dimostrare...)
Adesso viene accettata, ricordare solamente di fare i parametri dei costruttori e dei metodi come richiesto (altrimenti il loro main riporterà errori di compilazione), e nella classe GOTG di implementare anche i metodi

+Board getBoard()
+Player getPlayers()

Non è specificato, però viene detto all'inizio che le classi devono avere i rispettivi setter e getter (altrimenti come farebbe nel main quando instanzia GOTG a stampare i risultati)

18-02-2009 10:58
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

Una domanda, ma il metodo clone di board che serve?E soprattutto perchè deve tornare un Object e che Object è?

18-02-2009 11:42
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

Qualche anima pia potrebbe aiutarmi a capire che errori sono??

/users/malchiod/public_html/LP/sottoposizione/sottoposizioni/php1mdKlz/Main.java:3: cannot find symbol
symbol : class Piece
location: class Main
Piece pp = new TargetPiece();

/users/malchiod/public_html/LP/sottoposizione/sottoposizioni/php1mdKlz/Main.java:5: cannot find symbol
symbol : class StartPiece
location: class Main
if (pp instanceof StartPiece) System.out.println("*** StartPiece");
^

/users/malchiod/public_html/LP/sottoposizione/sottoposizioni/php1mdKlz/Main.java:12: cannot find symbol
symbol : class GameOfTheGoose
location: class Main
GameOfTheGoose game = new GameOfTheGoose(args[0]);
^

18-02-2009 12:05
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
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

Cioè devo proprio creare una classe Main che conterrà solo il rispettivo metodo??

grazie mille

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

Altra cosa io in makePlayers ho un richiamo al costrutore di player il quale può causare eccezzione, quindi se io lo chiamo in makePlayers makePlayers solleva una eccezione,quindi de compilo senza throws IOException non funziona.
Ma se metto throws IOException mi da errore in compilazione:


GameOfTheGoose.java:11: cannot find symbol
symbol : cass IOException
location : class GameOfTheGoose
public void makePlayers()throws IOException{
^
1 error


invece se provo try catch:



GameOfTheGoose.java:18: cannot find symbol
symbol : cass IOException
location : class GameOfTheGoose
catch(IOException e){}
^
1 error



HEEEEEEEELP!!!:(:(


Risolto, non avevo importato java.io.* mi vergono

Last edited by jack1189 on 18-02-2009 at 13:06

18-02-2009 12:41
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:
Time Online: 1 Day, 17:31:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Provo ad aiutarvi

@fraBg: No, non devi creare un main, quelli sono errori che vengono sollevati dalla classe Main che usano i prof per i test, vediamo

- Prova a non mettere argomenti del costruttore di TargetPiece, come vedi loro istanziano TargetPiece facendo new TargetPiece() , senza nessun argomento.
-Il secondo non saprei.
- Per il terzo controlla che il costruttore di GoTG riceva una stringa come parametro.

@jack1989: Per quanto riguarda il metodo Object clone(Object o), serve ad ottenere una copia di un oggetto (io l'ho usato per esempio per ottenere una copia di una istanza di Board che mi serviva come supporto), e nel mio caso è servito, perchè un semplice assegnamento mi dava solo un riferimento alla prima istanza di Board che avevo creato e non funzionava a dovere.

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

niente da fare ho provato a modificare come mi hai detto ma continua a darmi gli stessi errori.

ma scusate GameOfTheGoose game = new GameOfTheGoose(args[0]);
passa come argomento args[0] ma cos'e' un'array???
io gli passo una stringa con il pathname del file con la configurazione del campo

HELLLP

18-02-2009 15:46
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:
Time Online: 1 Day, 17:31:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

args[0] è una stringa, args è un array di stringhe, il tuo gotg deve avere un costruttore public GameOfTheGoose (String fn).

Il tuo costruttore andrà a mettere quell'fn in una qualche variabile di istanza e lo usarà per configurarti il campo Board.

Comunque controlla che il costruttore riceva esattamente UNA STRINGA, e controlla di aver scritto GameOfTheGoose esattamente come chiede lui, cioè con le maiuscole al posto giusto (ad esempio se hai chiamato la classe gameofthegoose non funzionerà la sottoposizione, perchè nel suo main il prof andrà ad usare GameOfTheGoose)

18-02-2009 16:09
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 fraBg
niente da fare ho provato a modificare come mi hai detto ma continua a darmi gli stessi errori.

ma scusate GameOfTheGoose game = new GameOfTheGoose(args[0]);
passa come argomento args[0] ma cos'e' un'array???
io gli passo una stringa con il pathname del file con la configurazione del campo

HELLLP


si vede che loro in un array hanno tanti nomi di file di testo che contengono diversi campi, e per testare i progetti, man mano passano al costruttore del GOTG un argomento dell'array diverso.

devi aver qualcosa che non va nel costruttore di GameOfTheGoose :)

ops..dsy era intasato e nn scriveva :D, già stata data risposta

18-02-2009 16:22
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
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

metti l'errore :
/users/malchiod/public_html/LP/sottoposizione/sottoposizioni/phpt45wBY/Main.java:15: cannot find symbol
symbol : class Player
location: class Main
for (Player p : game.getPlayers()) {

io ho scritto il metodo
public Player[] getPlayers(){
return players;
}
nella classe GameOfTheGoose che ha che non va bene??
grazie per la pazienza

18-02-2009 16:40
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
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

ragazzi importantissimo! ma il main allora lo dobbiamo sottoporre o meno????

e inoltre il metodo backup secondo voi deve salvare anche le poizioni correnti dei giocatori?? xkè se no è moooolto simile al metodo write e non ne vedo l'utilità!

Last edited by Pavo88 on 18-02-2009 at 16:45

18-02-2009 16:41
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
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

Occhio che il backup() deve crearti un nuovo documento (di cui decide l'utente il nome) con all'interno una sola stringa di configurazione (l'ultima appunto) ed è una normalissima copia di backup, e sovrascrive uno gia esistente, mentre il write deve semplicemente andare ad aggiungere una riga di configurazione al file di configurazione.

18-02-2009 18:09
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
All times are GMT. The time now is 09:45.    Post New Thread    Post A Reply
Pages (22): « First ... « 13 14 15 16 [17] 18 19 20 21 » ... 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.104 seconds (60.63% PHP - 39.37% MySQL) con 24 query.