Skip to content

dsc-dsc-dsc/textgame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

textgame

A 2D terminal based game creates an ascii box in which objects and food are distributed The caracter starts in the center and may move around using WASD or by itself as an AI example output:

+------------------------------------------------------------------------------+
| .       .   @                                                                |
|    @   @                                         .             .             |
|                           @                           .                      |
|    .     .                           @       @                        @      |
|   @       @  @                           @                       @           |
|   .      @                .                   @  .                           |
|           @                   @         @         .         .      .        .|
|   @          .              . @       .                                      |
|                       @       .   .             @    @   @                   |
|                                                             .              @ |
|   @@          @                    @            @                         @  |
|.    @  @  @       @                a              @          @               |
|          @                                                              @    |
|@@ @                                   @         .     .               .  @   |
|                             @                     @    @           . . @     |
|                                   .@   .     @  @          @   @        @    |
|                                      @      @         @        @       @     |
|        .        .            @@ @                       @    @               |
|@      .                       .                 @   .@        .              |
|    .     .      .@   @         @                           @ @   @           |
+------------------------------------------------------------------------------+
Score: 28  Moves Remaining: 586

The @ represent obstacles, and the . represent food, the a represents the player.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages