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.
- @joshfinney
- Version: 3.1
- A C compiler (such as GCC) to compile and run the programs
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
Copyright © 2023 Joshua.
This project is MIT licensed.