Thanks to all the participants. Deadline date has passed so this challenge is officially over but anyone's welcomed to try it and submit their code just for the practice.
33 Replies - 13408 Views - Last Post: 16 June 2012 - 03:13 AM
#17
Re: PHP Challenge - Morse Code Translator
Posted 16 April 2012 - 09:28 AM
Are the entries going to be posted soon?
#18
Re: PHP Challenge - Morse Code Translator
Posted 16 April 2012 - 09:59 AM
Yep... by the end of the day. Would of been sooner but I had a busy weekend and now the flu
#19
Re: PHP Challenge - Morse Code Translator
Posted 17 April 2012 - 09:06 AM
Looks like I'm way too late for this one. Still, just for kicks, here is what I would have submitted.
Not exactly efficient, or in any way practical, but a lot more fun
Spoiler
Not exactly efficient, or in any way practical, but a lot more fun
#20
Re: PHP Challenge - Morse Code Translator
Posted 17 April 2012 - 09:22 AM
I submitted one and failed. Think a regex wasn't quite right. Forgot about it. Oops. It was just for fun anyway
#21
Re: PHP Challenge - Morse Code Translator
Posted 17 April 2012 - 09:51 AM
@Atli I'll put it in anyhow.
@JackOfAllTrades It was off by a few characters you know. About 98% accurate
@JackOfAllTrades It was off by a few characters you know. About 98% accurate
This post has been edited by codeprada: 17 April 2012 - 09:53 AM
#22
Re: PHP Challenge - Morse Code Translator
Posted 20 April 2012 - 10:18 AM
Are these posted somewhere?
#24
Re: PHP Challenge - Morse Code Translator
Posted 20 April 2012 - 02:29 PM
Thanks. I could have sworn it wasn't there until you pointed it out!
#25
Re: PHP Challenge - Morse Code Translator
Posted 21 April 2012 - 03:02 AM
Wow. How was the accuracy bad?
I got a 2.5 (50%)for error handling, but all I had was a little trimming for whitespace?
2.5 for readability too? I thought my code was god awful.
I got a 2.5 (50%)for error handling, but all I had was a little trimming for whitespace?
2.5 for readability too? I thought my code was god awful.
#26
Re: PHP Challenge - Morse Code Translator
Posted 21 April 2012 - 06:13 AM
"You also shouldn't output "Invalid Character" in the results or kill the entire script when an invalid character is met."
This wasn't mentioned anywhere *sigh*
This wasn't mentioned anywhere *sigh*
#27
Re: PHP Challenge - Morse Code Translator
Posted 21 April 2012 - 06:29 AM
He's just simulating real-world conditions: "implied" project requirements and all
#28
Re: PHP Challenge - Morse Code Translator
Posted 21 April 2012 - 08:04 AM
I was going for the as few lines of code as possible prize
#29
Re: PHP Challenge - Morse Code Translator
Posted 21 April 2012 - 08:14 AM
#30
Re: PHP Challenge - Morse Code Translator
Posted 21 April 2012 - 04:46 PM
Most of the submissions were the same, split the text string and then loop through the array while flipping the morse code array for the morse-code-to-plain-text conversion, so I had to make the judging a bit harder. Would be boring if everyone got the same score all around.
@hiddenghost Your toPlainText() function gave me this
@CTphpnwb I only tested it in CLI so the HTML wasn't really necessary.
@hiddenghost Your toPlainText() function gave me this
0 0 0The toMorseCode() conversion worked though.
@CTphpnwb I only tested it in CLI so the HTML wasn't really necessary.
|
|

New Topic/Question
Reply



MultiQuote








|