Click here to Skip to main content
15,887,746 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: are you using/testing GitHub new GitHub Copilot Chat beta" ? Pin
Jeremy Falcon21-Jul-23 5:48
professionalJeremy Falcon21-Jul-23 5:48 
GeneralRe: are you using/testing GitHub new GitHub Copilot Chat beta" ? Pin
BillWoodruff21-Jul-23 6:11
professionalBillWoodruff21-Jul-23 6:11 
GeneralRe: are you using/testing GitHub new GitHub Copilot Chat beta" ? Pin
Gerry Schmitz21-Jul-23 6:07
mveGerry Schmitz21-Jul-23 6:07 
GeneralRe: are you using/testing GitHub new GitHub Copilot Chat beta" ? Pin
Gary Wheeler21-Jul-23 6:54
Gary Wheeler21-Jul-23 6:54 
GeneralRe: are you using/testing GitHub new GitHub Copilot Chat beta" ? Pin
BillWoodruff21-Jul-23 17:50
professionalBillWoodruff21-Jul-23 17:50 
GeneralRe: are you using/testing GitHub new GitHub Copilot Chat beta" ? Pin
Gary Wheeler22-Jul-23 3:16
Gary Wheeler22-Jul-23 3:16 
GeneralRe: are you using/testing GitHub new GitHub Copilot Chat beta" ? Pin
BillWoodruff22-Jul-23 6:51
professionalBillWoodruff22-Jul-23 6:51 
GeneralRe: are you using/testing GitHub new GitHub Copilot Chat beta" ? Pin
BillWoodruff21-Jul-23 8:43
professionalBillWoodruff21-Jul-23 8:43 
write opaque queries with almost no context information is a way to confirm your bias. another reason to avoid reading your sloppy comments.

ReSharper beta ai:

To simulate an army brigade changing formation from an order in battle to an order in column, you would need to model the brigade and its subdivisions, and then implement the logic for the formation change. Here's a simple example of how you might do this in C#:

First, let's define a Soldier class:

```csharp
public class Soldier
{
public string Name { get; set; }
}

```

Next, let's define a Subdivision class, which is a group of soldiers:

```csharp
public class Subdivision
{
public List<soldier> Soldiers { get; set; }
public Subdivision()
{
Soldiers = new List<soldier>();
}
}

```

Now, let's define a Brigade class, which is a group of subdivisions:

```csharp
public class Brigade
{
public List<subdivision> Subdivisions { get; set; }
public Brigade()
{
Subdivisions = new List<subdivision>();
}
}

```

Now, let's implement the logic for changing formation. For simplicity, let's assume that an order in battle is represented by the subdivisions being in a list in the order they should appear in battle, and an order in column is represented by the subdivisions being in a list in the order they should appear in column.

```csharp
public void ChangeFormationToOrderInColumn()
{
// Logic for changing formation goes here.
// For example, you might rearrange the subdivisions list based on some criteria.
Subdivisions = Subdivisions.OrderBy(s => s.Soldiers.Count).ToList();
}

```

This is a very simplified example and doesn't take into account the specific details of your scenario, such as what it means for a subdivision to be "right in front" or "left behind". You would need to add more properties and methods to these classes to fully model your scenario.
e«The mind is not a vessel to be filled but a fire to be kindled» Plutarch

GeneralWordle 762 Pin
Shane010320-Jul-23 18:18
Shane010320-Jul-23 18:18 
GeneralRe: Wordle 762 Pin
OriginalGriff20-Jul-23 18:57
mveOriginalGriff20-Jul-23 18:57 
GeneralRe: Wordle 762 Pin
GuyThiebaut20-Jul-23 19:40
professionalGuyThiebaut20-Jul-23 19:40 
GeneralRe: Wordle 762 Pin
Amarnath S20-Jul-23 20:05
professionalAmarnath S20-Jul-23 20:05 
GeneralRe: Wordle 762 Pin
ChandraRam20-Jul-23 20:48
ChandraRam20-Jul-23 20:48 
GeneralRe: Wordle 762 - 4 4 me Pin
pkfox20-Jul-23 20:49
professionalpkfox20-Jul-23 20:49 
GeneralRe: Wordle 762 Pin
Sander Rossel20-Jul-23 21:49
professionalSander Rossel20-Jul-23 21:49 
GeneralRe: Wordle 762 Pin
Cp-Coder21-Jul-23 0:31
Cp-Coder21-Jul-23 0:31 
GeneralRe: Wordle 762 (4/6) Pin
musefan21-Jul-23 2:03
musefan21-Jul-23 2:03 
GeneralRe: Wordle 762 Pin
Sandeep Mewara21-Jul-23 4:49
mveSandeep Mewara21-Jul-23 4:49 
GeneralRe: Wordle 762 (x/6) Pin
Jeremy Falcon21-Jul-23 4:49
professionalJeremy Falcon21-Jul-23 4:49 
GeneralRe: Wordle 762 4/6 Pin
jmaida21-Jul-23 9:29
jmaida21-Jul-23 9:29 
GeneralRe: Wordle 762 Pin
StarNamer@work21-Jul-23 10:28
professionalStarNamer@work21-Jul-23 10:28 
Generalworld 545 5/6 Pin
jmaida20-Jul-23 13:08
jmaida20-Jul-23 13:08 
GeneralSay it ain't true! Pin
PIEBALDconsult20-Jul-23 8:39
mvePIEBALDconsult20-Jul-23 8:39 
GeneralRe: Say it ain't true! Pin
Slacker00720-Jul-23 8:44
professionalSlacker00720-Jul-23 8:44 
GeneralRe: Say it ain't true! Pin
jmaida20-Jul-23 11:58
jmaida20-Jul-23 11:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.