The Weekly Challenge - 104

Monday, Mar 15, 2021| Tags: Perl, Raku

TABLE OF CONTENTS


01. HEADLINES

02. SPONSOR

03. RECAP

04. PERL REVIEW

05. RAKU REVIEW

06. CHART

07. NEW MEMBERS

08. GUESTS

09. TASK #1: FUSC Sequence

10. TASK #2: NIM Game


HEADLINES



This week was relative quiet but the modd was upbeat at always. Thanks to Team PWC for their support and encouragement. Special thanks to those who blog about it as well. You are doing great service to promote Perl and Raku. Keep it up.

We now have done interview with latest Champion, James Smith. It is a great feeling to be associated with such a great personality. Read his interview to find out more about him.

I would like to mention, Colin Crain, for his great service week after week. The Perl review is liked by every Team PWC members. I am sure you all agree the quality of review done by him. I know personally how much effort it takes to get it done. A big round of applause for him.

While talking about Perl review, we are still looking for volunteer to do Raku review. We now have a long list of backlog. You don’t have to do it all. Even if you do one or two weeks that would be a great help.

Enjoy this week challenge and keep sharing the knowledge.


Let’s share some interesting stats for Week #103 from the GitHub repository.

1. Commits: 15,162 (+166)

2. Pull Requests: 3,719 (+36)

3. Contributors: 160

4. Fork: 202 (+1)

5. Stars: 91 (+1)


Last but not least, I would like to thank each and every member for their support and encouragement.



Our solo sponsor Pete Sergeant has been a great support to keep us motivated. We are lucky that he agreed to continue the journey with us in the year 2021. I would like to personally thank Pete and his entire team for their generosity. It would be great if we could add few more to sponsor the prize money so that we could go back and declare weekly champions as we have done in the past. I hope and wish this will become possible in 2021. The amount doesn’t have to be huge. However, it would be nice to show off bunch of supporters. If an organisation comes forward and supports us then that would be the ultimate achievement.


RECAP


Quick recap of the “The Weekly Challenge - 103” by Mohammad S Anwar.


PERL REVIEW


Please check out Perl solutions review of the “Perl Weekly Challenge - 101” by Colin Crain.

If you missed any past reviews then please check out the collection.


RAKU REVIEW


If you missed any past reviews then please check out the collection.


CHART


Please take a look at the charts showing interesting data.

I would like to THANK every member of the team for their valuable suggestions. Please do share your experience with us.


NEW MEMBERS


Please find out How to contribute?, if you have any doubts.

Please try the excellent tool EZPWC created by respected member Saif Ahmed of Team PWC.


GUESTS


Please checkout the guest contributions for the Week #103.


Please find past solutions by respected guests. Please share your creative solutions in other languages.


TASK #1 › FUSC Sequence

Submitted by: Mohammad S Anwar

Write a script to generate first 50 members of FUSC Sequence. Please refer to OEIS for more information._

The sequence defined as below:

fusc(0) = 0
fusc(1) = 1
for n > 1:
when n is even: fusc(n) = fusc(n / 2),
when n is odd: fusc(n) = fusc((n-1)/2) + fusc((n+1)/2)


TASK #2 › NIM Game

Submitted by: Mohammad S Anwar

Write a script to simulate the NIM Game.

It is played between 2 players. For the purpose of this task, let assume you play against the machine.

There are 3 simple rules to follow:

a) You have 12 tokens
b) Each player can pick 1, 2 or 3 tokens at a time
c) The player who picks the last token wins the game


Last date to submit the solution 23:59 (UK Time) Sunday 21st March 2021.


SO WHAT DO YOU THINK ?

If you have any suggestions or ideas then please do share with us.

Contact with me