Skip to main content
added 10 characters in body
Source Link
ASCII-only
  • 5.1k
  • 21
  • 43

Charcoal, 4649 46 39 bytes (noncompeting)

UONNO_¶_OAKAαA№αOβHWψβ«A§α§⌕AαO‽βXA№αOβ

Note: ψ/k is 1000.

Verbose

Oblong(InputNumber(), InputNumber(), "O_\n_O")
Assign(PeekAll(), a)
Assign(Count(a, "O"), b)
RefreshWhile (k, b) {
    AssignAtIndex(a, AtIndex(FindAll(a, "O"), Random(b)), "X")
    Assign(Count(a, "O"), b)
}

Charcoal, 46 bytes (noncompeting)

UONNO_¶_OAKAαA№αOβHWψβ«A§α§⌕AαO‽βXA№αOβ

Note: ψ/k is 1000.

Verbose

Oblong(InputNumber(), InputNumber(), "O_\n_O")
Assign(PeekAll(), a)
Assign(Count(a, "O"), b)
RefreshWhile (k, b) {
    AssignAtIndex(a, AtIndex(FindAll(a, "O"), Random(b)), "X")
    Assign(Count(a, "O"), b)
}

Charcoal, 49 46 39 bytes (noncompeting)

UONNO_¶_OAKAαA№αOβHWψβ«A§α§⌕AαO‽βXA№αOβ

Verbose

Oblong(InputNumber(), InputNumber(), "O_\n_O")
Assign(PeekAll(), a)
Assign(Count(a, "O"), b)
RefreshWhile (k, b) {
    AssignAtIndex(a, AtIndex(FindAll(a, "O"), Random(b)), "X")
    Assign(Count(a, "O"), b)
}
deleted 41 characters in body
Source Link
ASCII-only
  • 5.1k
  • 21
  • 43

Charcoal, 4946 bytes (noncompeting)

Nα⪫…⟦…O_α…_Oα⟧N¶AKAβA№βOθHW¹⁰⁰⁰θ«A§β§⌕AβO‽θXA№βOθUONNO_¶_OAKAαA№αOβHWψβ«A§α§⌕AαO‽βXA№αOβ

Note: ψ/k is 1000.

Verbose

Oblong(InputNumber(a)
Print(Join(CycleChop([CycleChop("O_", a),CycleChop("_O", a)],InputNumber()), "\n")"O_\n_O")
Assign(PeekAll(), ba)
Assign(Count(ba, "O"), cb)
RefreshWhile (1000k, cb) {
    AssignAtIndex(ba, AtIndex(FindAll(ba, "O"), Random(cb)), "X")
    Assign(Count(ba, "O"), cb)
}

Charcoal, 49 bytes (noncompeting)

Nα⪫…⟦…O_α…_Oα⟧N¶AKAβA№βOθHW¹⁰⁰⁰θ«A§β§⌕AβO‽θXA№βOθ

Verbose

InputNumber(a)
Print(Join(CycleChop([CycleChop("O_", a),CycleChop("_O", a)],InputNumber()), "\n"))
Assign(PeekAll(), b)
Assign(Count(b, "O"), c)
RefreshWhile (1000, c) {
    AssignAtIndex(b, AtIndex(FindAll(b, "O"), Random(c)), "X")
    Assign(Count(b, "O"), c)
}

Charcoal, 46 bytes (noncompeting)

UONNO_¶_OAKAαA№αOβHWψβ«A§α§⌕AαO‽βXA№αOβ

Note: ψ/k is 1000.

Verbose

Oblong(InputNumber(), InputNumber(), "O_\n_O")
Assign(PeekAll(), a)
Assign(Count(a, "O"), b)
RefreshWhile (k, b) {
    AssignAtIndex(a, AtIndex(FindAll(a, "O"), Random(b)), "X")
    Assign(Count(a, "O"), b)
}
Source Link
ASCII-only
  • 5.1k
  • 21
  • 43

Charcoal, 49 bytes (noncompeting)

Nα⪫…⟦…O_α…_Oα⟧N¶AKAβA№βOθHW¹⁰⁰⁰θ«A§β§⌕AβO‽θXA№βOθ

Verbose

InputNumber(a)
Print(Join(CycleChop([CycleChop("O_", a),CycleChop("_O", a)],InputNumber()), "\n"))
Assign(PeekAll(), b)
Assign(Count(b, "O"), c)
RefreshWhile (1000, c) {
    AssignAtIndex(b, AtIndex(FindAll(b, "O"), Random(c)), "X")
    Assign(Count(b, "O"), c)
}