Here's a contest that I posted on the STEEM network. You'll have to write a python3 bot to play a real TV elimination game.
In short, your AI will come to small islands where all players solve a trial together, then vote for elimination of one of them, and repeat the process until the team fail...
Face-palm bug of the day: Wrote a parse-int function for the Appleseed standard library: convert from string to list of charcodes, call a helper function to parse an integer from the list, convert the result back to string. Couldn't figure out why I couldn't do math with the results. :P
I recently closed this post as off-topic because "it is not clear and it does not appear to be your own content". While I know realize my mistake in that it does actually seem to be OP's original post on that site, I will not vote to re-open because it is still not clearly written or specified en...
oh wait do you mean every election there are exactly two new candidate positions
We had Doorknob and Martin here earliest (not sure if they were pro tem or elected afterwards earlier on, I think pro tem because there have only been two elections including this one), Dennis and Alex were elected two years ago, and two of the three candidates will be elected this year.
@DLosc This is the stuff that will power the implementation
At the moment I'm putting together the basic mathematical operations on the Number type, once most of those are working, then comes UTF8/TeX/Native charset converters. Then the parser to map them into instructions, and a state machine to run the program and call the libraries providing the implementation for the instructions. Which come last.
@Pavel I willingly give my family tech support because otherwise I have to cope with their stupid ways of dealing with their stupid problems. If I help, they're still stupid problems but at least they go away quickly. twitch
@Pavel See, I don't have that problem. I just shrug and say, "I have no idea what's the best antivirus software." "I have no idea how to connect your smartphone to wifi." "I have no idea what caused that error." When I can help, I do; but I'm more of a programmer than an IT guy. My family members don't usually need help debugging code or snapshotting a VM. ;)
tl;dr: Output the values where the reduced prime factorization leader changes.
Every positive integer has a unique prime factorization. Let's call the reduced prime factorization just the list of multiplicity of the prime factors, ordered by the size of the factors. For instance, the reduced pri...
Given two integer vectors x and y of possibly unequal lengths, produce the two position vectors (of equal length) associated with an inner join based on the "by" columns x and y.
A position vector [4, 4, 1] e.g. means that the forth element of the input should be repeated twice, followed by the ...
Polystrips are a subset of polyominoes conforming to the following rules:
each piece consist of 1 or more cells
no cell can have more than two neighbours
the cells should not enclose a hole
Free polyominoes are distinct when none is a rigid transformation (translation, rotation, reflection or...
Indices of inner join (code-golf or alternatively also minimizing computational complexity)
Given two integer vectors x and y of possibly unequal lengths, produce the two position vectors (of equal length) associated with an inner join based on the "by" columns x and y.
A position vector [4, 4,...
Compile an XOISC program
Recently I solved this challenge, for which I created XOISC - a very low-level functional assembly language. To compile a program (written in the absurdly high-level lambda calculus programming language) for that low-level language it must first be translated into an exp...
I'm creating a functional programming language that is used to create single-page websockets-powered HTML apps and decided that PHP will generate the initial HTML layout and Python will control websockets. Is this a good idea?
Or could it be better to create own server in Python?
1000 – 2000 rep for figuring out how to program with both halves of a Stack Cats program
This bounty needs a bit of background, so bear with me.
Stack Cats is an esolang with fairly strong constraints on its program structure. Specifically, each valid program has to have mirror symmetry, and th...
@labela--gotoa I'll just assume it's vaguely related to one of the two options and wish you luck. And add that the less frameworks and languages you have in a project the better, so I'd personally use a python webserver.
Goal
You will be given a positive integer number less than 10^20. You must convert it to Korean.
For example, if the input is 12345, the output should be 일만이천삼백사십오.
Techinical details (Small)
Let's starts with simple numbers.
// 1 - 9
1 -> 일
2 -> 이
3 -> 삼
4 -> 사
5 -> 오
6 -> 육
7 -> 칠
8 -> 팔
9 ->
Could someone who knows stuff about licensing help me with something? gnupg is under the GPL license. I'd like to be able to use it in a closed source piece of software. Is this even remotely possible? gnupg would be distributed and used from the command line application thing (`os.system` OE)
Generate a maximal binary Gray code
Given an input integer n, find an n-bit gray code where the sum of the absolute difference between each adjacent pair of bits converted to decimal is maximized.
For example, if n = 3, there are 144 possible gray codes, and the maximal sum of deltas in decimal...
https://chat.stackexchange.com/transcript/64193/2017/8/21
I came across @Tonepoet's this defunct chatroom that has been "automatically deleted for inactivity."
Since it is an interesting topic I should like to see it revived.
How is that done here on ELU?
Note 2: the chat section warns users ...
I'm new to python and learning the basics. I'm currently learning how to make use of loops. In the video tutorial, the tutor taught how to do it with for loop and also asked as an exercise, to do same with while : either while before for or for loop before while or using just while alone.
I t...
you should abstract away the grid to a function that returns a sensible default on out-of-bounds coordinates, IMO
then something along the lines of for x in range(width): for y in range(height): for dx in [-1, 0, 1]: for dy in [-1, 0, 1]: grid(x, y) += grid(x + dx, y + dy) should make it look WAY nicer
Your task is to implement a Tetris strategy balanced in terms of score vs code size.
In this version of the game tetrominoes are rotated and dropped from above into a grid of 20 rows and 10 columns. While falling, they cannot be rotated or moved horizontally. As usual, a dropped piece stops when...
(this question relates to that "real TV" attempt at KOTH challenge)
I'd like to submit a game with the following characteristics, and I'd like to discuss whether or not it is acceptable here, and to what conditions:
game will be self-contained, but simultaneously posted on at least another pla...
Given externally-defined function f(x), and its known that x is 16 bit variable and f(x) has no internal state. Task is to calculate how many possible different results could function return?
Some trivial examples:
f(x)=x+1 => 65536 possible different outcomes
f(x)=1 => 1 possible result
f(x)=...
Guidelines
Task
Write a function that takes in a string of one or more words, and returns the same string, but with all words with five or more letters reversed (Just like the name of this Kata). Strings passed in will consist of only letters and spaces. Spaces will be included only when more t...
Sandbox:
Is any part of the spec confusing?
I probably want a snippet for this. What should it show? Should it just find the winning answer, cop, and robber? Should it display the status of answers? If so, I'd probably have to set a formatting standard.
Should I split this into two...
> All authored kata remain the IP of authors and contributors, with a license granted to Codewars, to maintain and advance the resource.
Anonymous
So it's copyright infringement
Anonymous
Kata solutions are licensed under the 2-clause BSD by Codewars, but the kata themselves are the IP of the author(s) and thus subject to the usual copyright law
@MDXF What's Cubically's integer type? Signed 32 bits?
Anonymous
I'm not convinced that a 20-question test on Pluralsight, that can be retaken once (and the retake has several repeated questions) is a good measure of skill, but I like the big number anyway :)
@betseg Copyright law protects the expression of ideas. A challenge is an idea, and the way it is written (i.e. the words, test cases, etc.) are the expression. Since the challenge description in question is directly copied from Codewars, it's a copyright violation.
ah, so if they change the wording it won't be a problem?
Anonymous
10:49 PM
@betseg I believe so, but I'm not 100% sure how much it needs to be changed to be legal. I just know that, in its current form, it's copyright infringement.
Text to Brain-Flak
Your challenge is to turn text input to brain-flak code that will output the text.
Read about brain-flak here
Rules
You may assume that the Brain-Flak is being run with ascii out.
The brain-flak code must NOT require input
All standard rules apply
The code must run withi...
CMC: multiply a real number by 3: given a real number as a function/program that outputs the integer part when given 0 and outputs the n-th digit when given n, and given n, return the corresponding digit / integral part. eg 23.1212.... is given as a function f where f(0)=23, f(1) = 1, f(2) = 2, f(3) = 1, f(4) = 2, etc. If your program is p, then p(f,0) = 69, p(f,1) = 3, p(f,2) = 6, etc