Discussions

SmileBASIC Community

RicardoCaffeine305

05/19/2016 12:42 AM ·Spoilers

Open Closed

Simple Tactics Engine

The idea is to create a tactics game using a Minimax AI for choosing the best move. All suggestions are welcome. There will be 3 different unit types defined depending on strength and attack range. So far, this project has received contribution from Sim#one (with a 3-kanji instead of a #) with the code whose share key is: 5BNECK4E.

Advertisement

Comment

This post has no comments.

  • Disgaea-like. All the units move on player's turn.

    Yeahs0
    Played
  • Been thinking on the best way to implement the unit's attack range. TBH, I've had no lectures on data structures or the like and I'm guessing it would give me some idea on how to do that. Not everything can be solved using arrays, I guess...

    Yeahs0
    Played
  • I think you could treat a bidimensional array(Or the same background) as a graph where each cell is a node and the relations are the adjacents cell. Then, you can use Breadth-First-Search to display the range of a unit(Movement or attack). You need to store the visited cell though... I think in two methods to do that:

    Yeahs0
    Played
  • 1-Using a bidimensional array with the same size of the map. Each time you do a bfs, fill that array with 0. Then, mark with 1 the visited cells. 2-Use 2 arrays to store the visited positions.

    Yeahs0
    Played
  • Sounds kinda like a labyrinth automatic navigation we did early with me mates! guess I should revist that code. Thanks for the advice!

    Yeahs0
    Played
  • I was thinking on individually calculating a complete matrix for each unit and then just sum all the matrices in order to know how the attack ranges of each unit interact with each other but, might it be a hard task for the 3DS processors? my best bet is it might be...

    Yeahs0
    Played
  • And if even if I decide to do that, I'll have to deal with some other sub tasks before continuing with the game (like a matrix addition program so I can implement it on the game later). Right now I'm dealing with the cursor (so you can select a unit).

    Yeahs1
    Played
  • After trying to code the game using Phaser, I decided to rewrite the entire code so it behaves just like (or as near as) what I've done on Phaser.

    Yeahs1
    Played
  • Right now it looks like this: it's just a board with auto-center for one unit. You can move the unit by directly touching it. Key is RD3ED83V

    Yeahs1
    Played
  • I got robbed past week and lost my New3DS. Can I recover this program's code just downloading it with the key?

    Yeahs1
  • oh no! That is horrible! You should be able to recover it unless the robber removed your program. I will try to grab it so I can preserve it for you :S Really sorry to hear your ds was stolen.. :[

    Yeahs0
    Played
  • Don't think those punks were even able to recognize the robbed me a videogame console, so I'm pretty sure they did no deletion... Thanks in advance, Ju.

    Yeahs1
  • Was able to recover all of my programs for the download site. I'm still interested in this idea, but between work, social service, the last subject I'm taking at the University... and all the games I had on my robbed New3DS reset to square one, I'm finding it kinda difficult to concentrate and/or keep the pace on this here project...

    Yeahs1
    Played
  • I can understand that. They didnt just steal your ds, they stole your motivation too. It can be really discouraging to lose everything you have been building for years :( If life is too busy for silly ds games at least they can be put on the back burner for holidays and de-stressing. Cant put university on hold :p

    Yeahs1
    Played
  • Time of closing this post. Before closing it I have to say I modified a little the program so the king can be dragged all around the board and only over the board. Added a toggle button when 'X' is pressed and that's it. Will post final key in a while.

    Yeahs1
    Played
  • Project is far away from completion but I'm not planning to delve further since I'm interested in other projects and I also reached a limit on what I can do with the little programming abilities (and spare time) I have. Maybe it was kinda far-fetched? interesting project, though. My next project will be that long-time pending project in the Game and Watch style...

    Yeahs1
    Played
  • NEVYY3H4

    Yeahs1
    Played
  • Thanks to everyone and see you next time.

    Yeahs0
    Played

Add a Comment

You must sign in to post a comment.

Sign in using a Nintendo Network ID to connect to users around the world by writing posts and comments and by giving Yeahs to other people's posts. You can create a Nintendo Network ID using your Wii U console or your system in the Nintendo 3DS family.

Use of Miiverse Details about Miiverse

Report Violation to Miiverse Administrators

You are about to report a post with content which violates the Miiverse Code of Conduct. This report will be sent to Nintendo's Miiverse administrators and not to the creator of the post.

Violation Type:

Post ID: 3DB-NBL7-BXM-ZM9D-RX6-FTC9

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: