[Home](./index.md) > [bitburner](./bitburner.md) > [Gang](./bitburner.gang.md) > [getChanceToWinClash](./bitburner.gang.getchancetowinclash.md)
## Gang.getChanceToWinClash() method
If you are not in BitNode-2, then you must have Source-File 2 in order to use this function.
Returns the chance you have to win a clash with the specified gang. The chance is returned in decimal form, not percentage
Signature:
```typescript
getChanceToWinClash(gangName: GangName): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| gangName | [GangName](./bitburner.gangname.md) | Target gang |
Returns:
number
Chance you have to win a clash with the specified gang.
## Remarks
RAM cost: 4 GB