Skip to content

πŸ“ ✏️ C Game Practical Work subject for my students when I was TA -- all right reserved

License

Notifications You must be signed in to change notification settings

SidoShiro/TP_bonus_the_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TP BONUS : THE ASCI/SDL GAME

Create a simple C with SDL library or just a text-based game.

Table of Contents

SUMMARY

RULES OF SUBMISSION

TETRIS

2048

AUTHORS

  • SidoShiro
  • Felix LΓ©on

Mails

Use: [ASM][BONUS]

COPYRIGHT

Check the license document of this repository.

Summary

Hello!

Soon it's holidays, and for most of you the exchange semester. This subject is written in English as a little training before your fantastic trip.

2048 is the easy one

You have to make a game, choosing one of these (or doing both of them):

  • Tetris-like game
  • 2048-like game

Rules of submission

README

Precise the headers & library used, dependencies

Your Makefile should work, with the dependencies you have written in the README.

Your README should explain EVERYTHING, max 200 lines.

Architecture

You need to follow this architecture of submission, in our school git.

AUTHORS file should be correct like:

* login
game_bonus/
|
|__________AUTHORS
|
|__________README
|
|__________TODO
|
|__________Makefile
|
|__________src_tetris/
|          |
|          |_______*.c   // Meaning all your .c files
|
|__________src_twothousantfortyeight/
|          |
|          |_______*.c   // ... same
|
|__________include/
           |
           |_______*.h  // Meaning all your .h files

Makefile

Here a begining of a Makefile in order to have a good start.

CC = gcc
CFLAGS = -std=c99 -pedantic -Wextra -Wall -Werror -Iinclude
SRC_TETRIS = # put the tetris .c files here
SRC_TTFE = # put the twothousantfortyeight .c files here

all: # put here tetris or/and twothousandfortyeight

tetris:
          $(CC) $(CFLAGS) $(SRC) -o tetris

twothousandfortyeight:
          $(CC) $(CFLAGS) $(SRC) -o twothousandfortyeight

clean:
          $(RM) *.o tetris twothousantfortyeight

/!\ You can choose to do tetris or/and 2048 (of course if you do the two games correctly your grade will be the best

The Two Games

Tetris

Make a console mode tetris game. The game should take place in a 20x10 array of blocks. Border should be printed by a special ascii symbol of your choice.

Fill carefully your README: explain how to make, execute and play the game.

Core Features

  • Handle collisions
  • Have at least the square of 4 blocks
  • Handle lose
  • Handle the line removal if a full line of blocks is completed

Advance Features

  • 5 types of piece
    • square of 4 blocks
    • bar of 4 blocks
    • T of 4 blocks
    • L of 5 blocks
    • S of 4 blocks
square:

  ##
  ##

bar:

####

T:

 #
###

S:

 ##
##
  • Handle score - write in README the points computation used
  • Handle piece rotation
  • Handle randomness of piece spawning

Advance+ Features

  • Main Menu (Play, See Scores, Exit)
  • Score board, may write a file tetris.score in the current directory of the binary
  • Add more pieces
  • Colors

2048

Goal

Implement a console version of the 2048 game in C

Specifications

The game should be playable using keyboard arrow keys and/or WASD

The board should be displayed in a pretty style

Notes

If this takes you more than 2 hours, you are doing something wrong.

About

πŸ“ ✏️ C Game Practical Work subject for my students when I was TA -- all right reserved

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published