I have been known in the past to do these kind of challenges and thought it was that time once again that I present the AutoIt community with a new challenge. I suggest you first go and read the link below as to what is the purpose of the challenge, as I would only repeat what was already said.
Anyway, once you've read the challenge, try and fill in the missing code to solve Josephus problem. Good luck.
Local $aArray = [1,2,3,4,5,6,7] Josephus($aArray, 3) ; Returns [3,6,2,7,5,1,4] Josephus($aArray, 1) ; Returns [1,2,3,4,5,6,7] Func Josephus($aArray, $iCount) ; Code here ; Returns an array EndFunc Source: http://www.codewars.com/kata/josephus-permutation
Hello, I have a simple task today, I am sure that I made a similar post a long time ago... I want trim (delete or remove or wipe) the contents of a file (text or binary) WITHOUT storing the contents of the file anywhere in the script. Here is a text file for the purpose of experimenting: (contents of text.txt)
1234567890 The task is simple, remove "456" from the contents of text.txt WITHOUT storing the contents anywhere! I wanted to post some code but it seems impossible to provide any relevant code this time...
Good luck with the challenge! TD
Perhaps, if you have a spare moment, you might like to take a look at >Wiki Examples Challenge Part 2 in the Developer Chat section, and do AutoIt and the contestants a favor, by examining the six Examples and casting a vote for one of them.
That would be really appreciated.
P.S. Jos, ETC, Melba23 - I hope you don't mind me posting this here and in General Help as well?
Challenge: Create the smallest number lines of AutoIt code to create a paper, rock, scissors game in which you ask for the user's choice and generate a random result for the computer.
Note: Mat can't play in this game. Sorry!
If this needs to be moved then by all means move it to an appropriate location. Thanks.