Learn PHP, project organization, web implementation, frameworking and other programming principles through developing a classic MUD game. This is the launching point for many other adventures in classical web development.
Some concepts we will explore:
- Basic elements of programming, from variables to data structures
- Object Oriented programming, polymorphism, inheritence and separation of concerns
- Command Line Interface (CLI) programming
- Code organization, autoloading and frameworks
- Web development with front-end and back-end separation
- How to run a script with PHP
- How functions functions are declared.
- Passing variables into functions.
- Screen output
- Special characters such as \n
- $argv variable
- Arrays
- exit function
- New function that uses a built in PHP function
- While loops
- How to read a terminal line and keep it historically
- If / Else block
- Exiting the script
- Classes and objects
- Switch statements
- Inheritence and Polymorphism
- rand()
- Added logic to class methods
- Switch while to be variable based
- Extended enemies to live within an array
- explode() function on $line
- New randomFloat() function and varying our enemies and float type
- unset() variables
- Moving code to its own files
- Learning include, require and require_once
- Organizing our code in folders
- Autoloading our classes
- Separating our Data from our Code
- JSON encoding and decoding
- File contents to strings