Search results

  1. ProgrammablePhysics

    C# Simple Snake Game - Snake Head is not moving after ReadKey()

    The snake head ```0``` does not move anywhere when ```Console.ReadKey()``` happens. Here is the full code: ``` using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SimpleSnakeGame_ConsoleApp { internal class...
  2. ProgrammablePhysics

    C# How to know if 2 ASCII created lines in a command prompt has the same length?

    Is there a way to know if these 2 lines have the same size in pixels aka length? What code should I use to determine if they have the same length or not? Just because these perpendicular lines created with ASCII, they differ in length size according to whether they were put next to one another...
  3. ProgrammablePhysics

    C# Dragging an item from listBox1 and droping the item into listBox2 code does not work(AllowDrop=true)

    Although both of the listBoxes **AllowDrop=true** listBox2 does not allow me to drop an item from listbox1 into listBox2. VS 2022 does not give any error, warning or exception handling problem. The problem is that this code does not do what it supposed to do. It does not let me carry 1 item...