Skip to content

joshfinney/C-Programming-Project-Suite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Programming Project Suite

This project consists of three separate tasks written in C language, each showcasing different programming techniques and features. The first task is a Pig Latin translator that converts English words into Pig Latin following a set of predefined rules. The translator function can process single words or entire sentences, replacing the original text with Pig Latin equivalents.

The second task demonstrates a riffle shuffle algorithm, which emulates a riffle shuffle for cards. The algorithm divides an array into two halves and reassembles it in a new order, imitating the interleaving of cards. The algorithm's performance can be assessed by measuring the shuffle quality. The final task is a card game simulation called Beggar Your Neighbour. The game involves multiple players, penalty cards, and various game mechanics. The implementation uses C language features to simulate the card game and determine the winning player.

👨🏽‍🎓 Author

💻 Requirements

  • A C compiler (such as GCC) to compile and run the programs

🌲 Project Structure

Advanced-Programming-in-C/
├── Beggar-Your-Neighbour/
│   ├── byn.exe
│   ├── single.exe
│   ├── statistics.txt
│   ├── beggar.o
│   ├── byn.o
│   ├── single.o
│   ├── Makefile
│   ├── beggar.c
│   ├── byn.c
│   ├── queue.c
│   ├── shuffle.c
│   ├── single.c
│   ├── statistics.c
│   ├── beggar.h
│   ├── queue.h
│   ├── shuffle.h
│   └── statistics.h
├── Pig-Latin/
│   ├── piglatin.exe
│   ├── test_pig.exe
│   ├── screenshot.png
│   ├── pig.o
│   ├── piglatin.o
│   ├── test_pig.o
│   ├── pig.c
│   ├── piglatin.c
│   ├── test_pig.c
│   └── pig.h
├── Riffle-Shuffle/
│   ├── demo_shuffle.exe
│   ├── quality.exe
│   ├── quality.txt
│   ├── demo_shuffle.o
│   ├── quality.o
│   ├── riffle.o
│   ├── demo_shuffle.c
│   ├── quality.c
│   ├── riffle.c
│   └── riffle.h
├── LICENSE
└── README.md

📚 Additional resources

📝 License

Copyright © 2023 Joshua.

This project is MIT licensed.

About

This Github repository contains code for a continuous assessment in the module "The C Family" (ECM2433). It includes three tasks that test knowledge of advanced programming concepts in C: Pig Latin translation, array shuffling, and a card game.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors