Hi! ๐
jmariondev / name-game Goto Github PK
View Code? Open in Web Editor NEWA C implementation of the "Name Game" as defined in the 1964 Shirley Ellis song by the same name.
A C implementation of the "Name Game" as defined in the 1964 Shirley Ellis song by the same name.
Hi! ๐
The capitalization of the input is currently an issue, as demonstrated in the following cases:
"MARSHA": "MARSHA, MARSHA bo bARSHA"
"MaRsHa": "MaRsHa, MaRsHa bo baRsHa"
"Erin": "Erin, Erin bo bErin"
I believe the easiest way to fix this is to override the capitalization of the input, and normalize it to Ccccc (where 'c' is a character). The only issue I see with this is names that legitimately have capitals within them, though this is a small enough use-case that I don't think it's worth making an exception for.
Names beginning with vowels become nonsensical when truncated (ie "Erin" becomes "brin").
Deviating from the initial specification is probably a good choice in this case because the song itself does this in its own lyrics.
A potential fix is to just not truncate the first letter of the name if it's a vowel.
Because of my argv[i]+1 sub-string method, arguments of 1-character have empty-string as the trimmed name, causing nothing to print in the place of the trimmed name in the output.
This can just be fixed by ensuring that the argv[i]+1 is not a null-byte for each name, probably printing a warning and skipping that argument.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.