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 > Basi di dati ~ informatica triennale > [Progetto]Spostamento degli eserciti
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
booms
.fedelissimo.

User info:
Registered: Nov 2004
Posts: 47 (0.01 al dì)
Location:
Corso: informatica
Anno: 1
Time Online: 14:00:40 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[Progetto]Spostamento degli eserciti

Ciao -

come avete gestito lo spostamento degli eserciti? ovvero, come avete calcolato il percoso da una città ad un'altra?

Saluti

Vincenzo

23-03-2009 21:21
Click Here to See the Profile for booms Click here to Send booms a Private Message Find more posts by booms Add booms to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Counter65
.illuminato.

User info:
Registered: Sep 2008
Posts: 180 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 13:15:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

l'esercito si puo spostare solo di 1, direttamente con la tabella che tiene le strade quindi.

24-03-2009 08:48
Click Here to See the Profile for Counter65 Click here to Send Counter65 a Private Message Find more posts by Counter65 Add Counter65 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
booms
.fedelissimo.

User info:
Registered: Nov 2004
Posts: 47 (0.01 al dì)
Location:
Corso: informatica
Anno: 1
Time Online: 14:00:40 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Purtroppo non è cosi: "L'esercito può muoversi fra le città del giocatore utilizzando le strade esistenti. Lo spostamento fra due città è possibile solo se il numero di strade da percorrere è inferiore al numero di punti movimenti dell'esercito".

Se si potesse spostare solo di 1 questa frase sarebbe scritta così : Ad ogni spostamento viene sottratto 1 punto movimento.

24-03-2009 15:34
Click Here to See the Profile for booms Click here to Send booms a Private Message Find more posts by booms Add booms to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Counter65
.illuminato.

User info:
Registered: Sep 2008
Posts: 180 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 1 Day, 13:15:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

è vero hai ragione, io ho scritto una procedura per trovare il cammino minimo, anche se il numero massimo di ricorsioni su SQL server è 32, su MySql mi pare sia 100, quindi potrebbe non funzionare in certi casi;

piacerebbe sapere anche a me come è stata fatta questa parte in generale a questo punto...

24-03-2009 21:50
Click Here to See the Profile for Counter65 Click here to Send Counter65 a Private Message Find more posts by Counter65 Add Counter65 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
antares85
.illuminato.

User info:
Registered: Oct 2005
Posts: 197 (0.03 al dì)
Location: milano
Corso: informatica
Anno: 2
Time Online: 1 Day, 6:16:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

eh si, credo sia il punto più complicato inisieme alla "circolazione" dei turni di gioco.
bisogna calcolare il cammino minimo dalla città nella quale si trova l'esercito a quella dove vuole andare e vedere se il numero di strade di questo cammino è minore dei PM

25-03-2009 08:57
Click Here to See the Profile for antares85 Click here to Send antares85 a Private Message Find more posts by antares85 Add antares85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 23:19.    Post New Thread    Post A Reply
  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.058 seconds (62.77% PHP - 37.23% MySQL) con 25 query.