Skip to content

Oddsie/OddsiePlusPlus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oddsie++

Oddsie++ is an "improved" version of Oddsie. It has a better syntax, and a better writing expirience. This time it interprets and transpiles your code, rather than doing one or the other.

Example

use random
class main (
	function __init__::self (
		display "NUMBER GUESS"
		var act=random.randint()
		var gue=input(": ")
		if gue==act (
			display "Good Guess!"
		);
		otherwise (
			display "Incorrect! Number was "+str(act)+"!"
		);
	);
);

^ Simple number-guessing game ^

;; Really Complicated Hello World
class main (
	function __init__::self (
		var self.txt=""
		.self.uno::
		.self.dos::
		.self.tres::
	);
	function uno::self (
		var self.txt=self.txt+"Hello,"
	);
	function dos::self (
		var self.txt=self.txt+" world!"
	);
	function tres::self (
		display self.txt
	);
);

^ An overly complicated Hello, World! program ^

What do I need to code in Oddsie++?

The same things you need for Oddsie.

About

An "improved" version of Oddsie.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published